Documentation ¶
Index ¶
- func Env() types.EnvVars
- func ErrLog(err error) slog.Attr
- func HandleError(err error)
- func LoadEnv(envs ...EnvLoader) error
- func Logger() *slog.Logger
- func ReconfigureLogger(w io.Writer, level slog.Level, format LogFormat)
- func SafeClose(c Closer)
- func SafeWrite(w io.Writer, b []byte)
- func ToPtrSlice[T any](x []T) []*T
- type Closer
- type EnvLoader
- type LogFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶ added in v0.0.16
func HandleError(err error)
func ToPtrSlice ¶ added in v0.0.15
func ToPtrSlice[T any](x []T) []*T
Types ¶
Click to show internal directories.
Click to hide internal directories.