Documentation
¶
Index ¶
- func GetEnv(key, fallback string) string
- func GetEnvBool(key string, fallback bool) bool
- func GetEnvInt(key string, fallback int) int
- func GetIntFromContext(c ContextGetter, key string) (int, error)
- func GetIntFromContextParams(params ParamsGetter, key string) (int, error)
- func Hash(salt string, data string) string
- func WrapErrors(err1, err2 error) error
- type ContextGetter
- type ParamsGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvBool ¶ added in v1.1.0
func GetIntFromContext ¶
func GetIntFromContext(c ContextGetter, key string) (int, error)
func GetIntFromContextParams ¶ added in v1.1.0
func GetIntFromContextParams(params ParamsGetter, key string) (int, error)
func WrapErrors ¶ added in v1.2.0
Types ¶
type ContextGetter ¶ added in v1.2.0
We introduce a ContextGetter instead of just using gin.Context to remove the dependency on gin
type ParamsGetter ¶ added in v1.2.0
We introduce a ParamsGetter instead of just using gin.Params to remove the dependency on gin
Click to show internal directories.
Click to hide internal directories.