Documentation ¶
Index ¶
- func CamelToSnake(ss []string) []string
- func Chunk(slice interface{}, chunkSize int) interface{}
- func GetFieldSliceByName(arr interface{}, name string, format ...string) interface{}
- func IsIteratee(in interface{}) bool
- func PatchSliceByField(target interface{}, source interface{}, targetMatchKey string, ...) ([]map[string]interface{}, error)
- func RemoveStringDuplicates(s []string) ([]string, []string)
- func StrSliceContains(ss []string, s string) bool
- func StringInSlice(a string, list []string) bool
- type SyncSlice
- type SyncSliceItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToSnake ¶
CamelToSnake change array string to snaker
func GetFieldSliceByName ¶
GetFieldSliceByName defined
func IsIteratee ¶
func IsIteratee(in interface{}) bool
IsIteratee returns if the argument is an iteratee.
func PatchSliceByField ¶
func PatchSliceByField(target interface{}, source interface{}, targetMatchKey string, sourceMatchKey string, key ...string) ([]map[string]interface{}, error)
PatchSliceByField defined
func RemoveStringDuplicates ¶
RemoveStringDuplicates defined
func StrSliceContains ¶
StrSliceContains check string exists in array
Types ¶
type SyncSlice ¶
SyncSlice type that can be safely shared between goroutines
func (*SyncSlice) Append ¶
func (cs *SyncSlice) Append(item interface{})
Append pends an item to the concurrent slice
func (*SyncSlice) Iter ¶
func (cs *SyncSlice) Iter() <-chan SyncSliceItem
Iter over the items in the concurrent slice Each item is sent over a channel, so that we can iterate over the slice using the builin range keyword
type SyncSliceItem ¶
type SyncSliceItem struct { Index int Value interface{} }
SyncSliceItem slice item
Click to show internal directories.
Click to hide internal directories.