Documentation ¶
Index ¶
- func ApplyOptions[T any](service *T, options []func(*T)) *T
- func AssertIsDefined(value any, message ...string)
- func CloneMap[K comparable, V any](data map[K]V) map[K]V
- func CloseSafe(resource io.Closer)
- func FPrint(w io.Writer, payload ...any)
- func FPrintf(w io.Writer, format string, a ...any)
- func FPrintln(w io.Writer, a ...any)
- func GracefulShutdown(ctx context.Context, shutdownFunc func(ctx context.Context) error)
- func Is1xxCode(code int) bool
- func Is2xxCode(code int) bool
- func Is3xxCode(code int) bool
- func Is4xxCode(code int) bool
- func Is5xxCode(code int) bool
- func NormaliseRequest(request *http.Request)
- func PanicInterceptor(action func(any))
- func PassedOrOsFs(fs *afero.Fs)
- func Sprintf(format string, a ...any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyOptions ¶ added in v0.2.2
func ApplyOptions[T any](service *T, options []func(*T)) *T
func AssertIsDefined ¶
func CloneMap ¶ added in v0.1.0
func CloneMap[K comparable, V any](data map[K]V) map[K]V
func GracefulShutdown ¶ added in v0.2.0
func NormaliseRequest ¶ added in v0.1.0
func PanicInterceptor ¶ added in v0.2.0
func PanicInterceptor(action func(any))
func PassedOrOsFs ¶ added in v0.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.