Documentation ¶
Index ¶
- func ContainsString(slice []string, needle string) bool
- func DeepSearchInMap(m map[string]interface{}, key string, keyDelimiter string) map[string]interface{}
- func ExpandInlineKeyInLinkedHMap(hMap *linkedhashmap.Map, delim string) *linkedhashmap.Map
- func GetStructFullname(val interface{}) string
- func GetStructShortName(val interface{}) string
- func LinkedHMap(items ...MapItem) *linkedhashmap.Map
- func LinkedHMapToMapStr(hMap *linkedhashmap.Map) map[string]interface{}
- func MergeCaseInsensitiveMaps(src, tgt map[string]interface{}) map[string]interface{}
- func MergeLinkedHMap(dst *linkedhashmap.Map, src *linkedhashmap.Map)
- func PrependString(slice []string, e string) []string
- func ReplacePlaceholder(val interface{}) (interface{}, error)
- func SliceFromCommaString(str string) []string
- func Time2Ms(t time.Time) int64
- func YamlMapSliceToLinkedHMap(ms yaml.MapSlice) *linkedhashmap.Map
- type MapItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func DeepSearchInMap ¶
func ExpandInlineKeyInLinkedHMap ¶
func ExpandInlineKeyInLinkedHMap(hMap *linkedhashmap.Map, delim string) *linkedhashmap.Map
func GetStructFullname ¶
func GetStructFullname(val interface{}) string
func GetStructShortName ¶
func GetStructShortName(val interface{}) string
func LinkedHMap ¶
func LinkedHMap(items ...MapItem) *linkedhashmap.Map
func LinkedHMapToMapStr ¶
func LinkedHMapToMapStr(hMap *linkedhashmap.Map) map[string]interface{}
func MergeCaseInsensitiveMaps ¶
MergeCaseInsensitiveMaps merges two maps
func MergeLinkedHMap ¶
func MergeLinkedHMap(dst *linkedhashmap.Map, src *linkedhashmap.Map)
func PrependString ¶
func ReplacePlaceholder ¶
func ReplacePlaceholder(val interface{}) (interface{}, error)
ReplacePlaceholder Replaces a value in placeholder format by new value configured in environment variable.
Placeholder format: ${EXAMPLE_VAR}
func SliceFromCommaString ¶
func YamlMapSliceToLinkedHMap ¶
func YamlMapSliceToLinkedHMap(ms yaml.MapSlice) *linkedhashmap.Map
Types ¶
type MapItem ¶
type MapItem struct { Key interface{} Value interface{} }
func NewMapItem ¶
func NewMapItem(key interface{}, value interface{}) MapItem
Click to show internal directories.
Click to hide internal directories.