Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringSliceTransform ¶ added in v0.9.0
StringSliceTransform returns a new slice `s` where s[i] = fct(values[i])
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
StructToMap converts a struct to a map[string]interface{} based on `json` annotations defaulting to field names
Types ¶
type StringSet ¶
type StringSet map[string]struct{}
StringSet represents a list of uniq strings
func NewStringSet ¶
NewStringSet returns as new StringSet initialized with initItems
Click to show internal directories.
Click to hide internal directories.