-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogger.go
More file actions
16 lines (15 loc) · 740 Bytes
/
Copy pathlogger.go
File metadata and controls
16 lines (15 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Package httpx provides useful extensions around Go's net/http package
// including error handling, response writers, and graceful server shutdown.
//
// The package consists of several sub-packages:
// - httperr: HTTP error handling and error-to-response conversion
// - respond: Simplified response writing for JSON, XML, HTML, and plain text
// - contenttype: Constants for common MIME content types
// - calling: Function calling utilities with string arguments
package httpx
// Logger is an interface for logging messages.
// It is used by GracefulShutdownServerOnSignal to log signals and errors.
// The standard library's log.Logger implements this interface.
type Logger interface {
Printf(format string, args ...any)
}