Documentation
¶
Index ¶
- Constants
- func DateTimeFromString(dateTimeStr string) (*time.Time, error)
- func DateTimeFromStringPanic(dateTimeStr string) *time.Time
- func NewGoroGroup() *goroGroup
- func NewTimeout(duration time.Duration) *timeout
- func NewTimeoutMs(durationMs uint) *timeout
- func NilOrPanic(err error)
- func Pointer[T any](value T) *T
- func Reduce[T any](arr []T, f func(accumulator, currentValue T) T) T
- func ResultOrPanic[T any](res T, err error) T
- type EnvConfig
- type Error
- type LogLevel
- type Logger
Constants ¶
View Source
const ( LogLevelDebug = LogLevel(iota) LogLevelInfo LogLevelWarning LogLevelError LogLevelPanic )
View Source
const ConfigLogLevel = EnvConfig("LOG_LEVEL")
View Source
const ErrorLogLevelNotSet = Error("LOG_LEVEL_NOT_SET")
View Source
const ErrorTimeout = Error("TIMEOUT_ERROR")
Variables ¶
This section is empty.
Functions ¶
func DateTimeFromStringPanic ¶
Useful in tests
func NewGoroGroup ¶
func NewGoroGroup() *goroGroup
func NewTimeout ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.