Documentation ¶
Index ¶
- func EnsureDot(input string) string
- func Max[T Ordered](a, b T) T
- func Min[T Ordered](a, b T) T
- func Ptr[T any](v T) *T
- func RandomString(n int) (string, error)
- func RemoveDot(input string) string
- func ReverseCopy[T any](in []T) []T
- func StringToBool(v string) bool
- func ValOrZero[T any](p *T) (v T)
- type Ordered
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
func ReverseCopy ¶ added in v2.0.1
func ReverseCopy[T any](in []T) []T
func StringToBool ¶
StringToBool returns boolean value from string.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package clienv supports adding env variables automatically into github.com/urfave/cli flags.
|
Package clienv supports adding env variables automatically into github.com/urfave/cli flags. |
Package golden provides standard way to write tests with golden files.
|
Package golden provides standard way to write tests with golden files. |
Package integrationtest makes it easier to run integration tests against compiled binary.
|
Package integrationtest makes it easier to run integration tests against compiled binary. |
Package log provides sane default loggers using slog.
|
Package log provides sane default loggers using slog. |
middleware
|
|
Package must provides helper functions for testing.
|
Package must provides helper functions for testing. |
Package service provides simple service framework on top of Module interface.
|
Package service provides simple service framework on top of Module interface. |
module/cronrunner
Package cronrunner provides module wrapper for github.com/robfig/cron/v3.
|
Package cronrunner provides module wrapper for github.com/robfig/cron/v3. |
module/httpserver
Package httpserver provides http server as module.
|
Package httpserver provides http server as module. |
module/httpserver/pprof
Package pprof provides pprof handler options for httpserver module.
|
Package pprof provides pprof handler options for httpserver module. |
module/httpserver/prom
Package prom provides prometheus metrics handler options for httpserver module.
|
Package prom provides prometheus metrics handler options for httpserver module. |
module/sentry
Package sentry provides sentry functionality as a module.
|
Package sentry provides sentry functionality as a module. |
module/siglistener
Package siglistener provides signal listening as a module.
|
Package siglistener provides signal listening as a module. |
module/ticker
Package ticker provides ticker functionality as a module.
|
Package ticker provides ticker functionality as a module. |
module/watcher
Package watcher provides file update notification functionality as a module.
|
Package watcher provides file update notification functionality as a module. |
Click to show internal directories.
Click to hide internal directories.