Documentation ¶
Index ¶
- func AbsDiffString(a, b []string) []string
- func Contains(obj interface{}, target []interface{}) bool
- func ContainsInt(obj int, target []int) bool
- func ContainsString(obj string, target []string) bool
- func DiffString(a, b []string) []string
- func Index(limit int, predicate func(i int) bool) int
- func RemoveDuplicatesInt(s *[]int)
- func RemoveDuplicatesString(s *[]string)
- func RemoveIntUnordered(data, remove []int) []int
- func RemoveStringUnordered(data, remove []string) []string
- func RemoveUnordered(data, remove interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsDiffString ¶
AbsDiffString returns the absolute subtraction of tow string slices
func Contains ¶
func Contains(obj interface{}, target []interface{}) bool
Contains returns wether the given obj is in the targe.
func ContainsInt ¶
ContainsInt returns wether the given integer is in the target slice.
func ContainsString ¶
ContainsString returns wether the obj is in the target.
func DiffString ¶
DiffString returns the subtraction of tow string slices whtich in a but not in b
func RemoveDuplicatesInt ¶
func RemoveDuplicatesInt(s *[]int)
RemoveDuplicatesInt removes the duplicated element from the slice.
func RemoveDuplicatesString ¶
func RemoveDuplicatesString(s *[]string)
RemoveDuplicatesString removes the duplicated element from the slice.
func RemoveIntUnordered ¶
RemoveIntUnordered returns the unordered remaining slice after getting rid of arg2 from arg1. This function do not preserve the order of origin slice.
func RemoveStringUnordered ¶
RemoveStringUnordered returns the unordered remaining slice after getting rid of arg2 from arg1.
func RemoveUnordered ¶
func RemoveUnordered(data, remove interface{}) (interface{}, error)
RemoveUnordered returns the unordered remaining slice after getting rid of arg2 from arg1 using reflection. Please only use it in generic type processing for low performance.
Types ¶
This section is empty.