internal

package
v0.0.0-...-d997f86 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncNameAndLocation

func FuncNameAndLocation(fn any) string

func GetStringMapString

func GetStringMapString(vp *viper.Viper, key string) map[string]string

GetStringMapString contains one enhancement to support k1=v2,k2=v2 compared to original implementation of GetStringMapString function Related upstream issue https://github.com/spf13/viper/issues/911

func GetStringMapStringE

func GetStringMapStringE(vp *viper.Viper, key string) (map[string]string, error)

GetStringMapStringE is same as GetStringMapString, but with error

func PrettyType

func PrettyType(x any) string

func ToStringMapStringE

func ToStringMapStringE(data interface{}) (map[string]string, error)

ToStringMapStringE casts an interface to a map[string]string type. The underlying interface type might be a map or string. In the latter case, it is attempted to be json decoded, falling back to the k1=v2,k2=v2 format in case it doesn't look like json.

Types

This section is empty.

Jump to

Keyboard shortcuts

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