Documentation ¶
Index ¶
- func Contains(list []string, item string) bool
- func Convert(src, target interface{}) error
- func ConvertByJSON(src, target interface{}) error
- func CopyMap(m map[string]string) map[string]string
- func CopySlice(s []string) []string
- func IsSelected(selected []string, name string) bool
- func MapUnion(left, right map[string]string) map[string]string
- func MapUnionI(left, right map[string]interface{}) map[string]interface{}
- func NestedMapsToMapInterface(data map[string]interface{}) map[string]interface{}
- func RetryOnError(count int, f func() error) error
- func ToMapByte(data map[string]string) map[string][]byte
- func ToMapInterface(data map[string]string) map[string]interface{}
- func ToMapString(data map[string]interface{}) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶ added in v0.15.0
func Convert(src, target interface{}) error
Convert converts a struct (src) to another one (target) using yaml marshalling/unmarshalling. If the structure are not compatible, this will throw an error as the unmarshalling will fail.
func ConvertByJSON ¶ added in v0.15.0
func ConvertByJSON(src, target interface{}) error
ConvertByJSON converts a struct (src) to another one (target) using json marshalling/unmarshalling. If the structure are not compatible, this will throw an error as the unmarshalling will fail.
func IsSelected ¶ added in v0.15.0
func RetryOnError ¶ added in v0.15.7
func ToMapInterface ¶
func ToMapString ¶ added in v0.15.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.