Documentation ¶
Index ¶
- func CopyExcludingKeys[M ~map[K]V, K comparable, V any](src M, dst M, omitKeys []K)
- func GetEnvOrDefault(key string, fallback string) string
- func GetMapSliceFromRows(rows *sql.Rows) (*[]map[string]interface{}, error)
- func GetValueOrDefault[M ~map[K]V, K comparable, V any](m M, key K, defaultValue V) V
- func Hash(s string) string
- func IsDebug() bool
- func IsFlagSet(name string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyExcludingKeys ¶
func CopyExcludingKeys[M ~map[K]V, K comparable, V any](src M, dst M, omitKeys []K)
func GetEnvOrDefault ¶
func GetMapSliceFromRows ¶
func GetValueOrDefault ¶
func GetValueOrDefault[M ~map[K]V, K comparable, V any](m M, key K, defaultValue V) V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.