utils

package
v0.0.0-...-4ab9e39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 GetEnvOrDefault(key string, fallback string) string

func GetMapSliceFromRows

func GetMapSliceFromRows(rows *sql.Rows) (*[]map[string]interface{}, error)

func GetValueOrDefault

func GetValueOrDefault[M ~map[K]V, K comparable, V any](m M, key K, defaultValue V) V

func Hash

func Hash(s string) string

func IsDebug

func IsDebug() bool

func IsFlagSet

func IsFlagSet(name string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL