Documentation ¶
Index ¶
- func GetMapKeys(inputMap map[string][]byte) []string
- func GetMemberID(suffix string) string
- func MD5Hash(data string, length int) string
- func RandomString(n int, seed bool) string
- func SplitTags(tags string) []string
- func StringSliceContains(stringSlice []string, data string) bool
- func StringSliceInStringSlice(s1, s2 []string) bool
- type CustomDuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapKeys ¶
Helper for fetching keys in a map
func GetMemberID ¶
func RandomString ¶
From @stackoverflow; generate an optionally seeded, N length random string
func StringSliceContains ¶
func StringSliceInStringSlice ¶
Return true if ANY element in s1 appears in s2, otherwise return false
Types ¶
type CustomDuration ¶
func (*CustomDuration) MarshalJSON ¶
func (cd *CustomDuration) MarshalJSON() ([]byte, error)
func (*CustomDuration) String ¶
func (cd *CustomDuration) String() string
func (*CustomDuration) UnmarshalJSON ¶
func (cd *CustomDuration) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.