Documentation
¶
Index ¶
- func Contains(a []string, x string) bool
- func Find(a []string, x string) int
- func IniToMap(path string) map[string]string
- func MapToIni(Map map[string]string) string
- func ReplaceAllInSlice(a []string, find string, replacement string) (replaced []string)
- func SplitAllInSlice(a []string, split string, index int) (replaced []string)
- func StructToIni(s interface{}) string
- func StructToMap(s interface{}) map[string]interface{}
- func ToBase64Map(m map[string]interface{}) map[string]string
- func ToByteMap(m map[string]interface{}) map[string][]byte
- func ToGenericMap(m map[string]string) map[string]interface{}
- func ToString(i interface{}) string
- func ToStringMap(m map[string]interface{}) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶ added in v1.5.1
Find returns the smallest index i at which x == a[i], or len(a) if there is no such index.
func ReplaceAllInSlice ¶
ReplaceAllInSlice runs strings.Replace on all elements in a slice and returns the result
func SplitAllInSlice ¶
SplitAllInSlice runs strings.Split on all elements in a slice and returns the results at the given index
func StructToIni ¶
func StructToIni(s interface{}) string
StructToIni takes an object and serializes it's fields in INI format
func StructToMap ¶
func StructToMap(s interface{}) map[string]interface{}
StructToMap takes an object and returns all it's field in a map
func ToBase64Map ¶
ToBase64Map converts a map[string]interface{} to a map[string]string by converting []byte to base64
func ToByteMap ¶
ToByteMap converts a map[string]interface{} to a map[string]string by converting []byte to base64
func ToGenericMap ¶
ToGenericMap converts a map[string]string to a map[string]interface{}
func ToString ¶
func ToString(i interface{}) string
ToString takes an object and tries to convert it to a string
func ToStringMap ¶
ToStringMap converts a map[string]interface{} to a map[string]string by using each objects String() fn
Types ¶
This section is empty.