Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnv ¶
GetEnv reads the env variable specified by "key", or set a default value if the var not found
Parameters:
- key: string - The env variable name, to get.
- defaultValue: string - The default value to return, in case key doens't exist.
Returns:
- string - The string value or it's default value
func MergeMaps ¶ added in v0.2.0
MergeMaps will merge together 2 maps of type map[string]interface{} the values of the 2nd map, if already existent in 1st map, will override
Parameters:
- a: map[string]interface{} - The 1st map to merge
- b: map[string]interface{} - The 2nd map to merge
Returns:
- map[string]interface{} - The resulting merged map
func MergeStringMaps ¶ added in v0.3.0
MergeStringMaps will merge together 2 maps of type map[string]string the values of the 2nd map, if already existent in 1st map, will override
Parameters:
- a: map[string]string - The 1st map to merge
- b: map[string]string - The 2nd map to merge
Returns:
- map[string]string - The resulting merged map
func SliceContainsString ¶ added in v0.2.0
SliceContainsString checks if a given string exists in a strings slice.
Parameters:
- slice: []string - The source slice where to check for the existence of a specific string.
- str: string - The string to check.
Returns:
- bool - True if the string is found in the slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.