Documentation ¶
Index ¶
- func Contains(haystack []interface{}, needle interface{}) bool
- func ContainsString(haystack []string, needle string) bool
- func Extract(slice interface{}, fldName string) []interface{}
- func Find(slice interface{}, fldName string, fldValue interface{}) []interface{}
- func FindOne(slice interface{}, fldName string, fldValue interface{}) interface{}
- func Group(slice interface{}, fldName string) map[string][]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func Extract ¶
func Extract(slice interface{}, fldName string) []interface{}
Extract fetches the given field value from all the items of the slice.
func Find ¶
func Find(slice interface{}, fldName string, fldValue interface{}) []interface{}
Find returns all the matching items of a slice where the Field name has the given value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.