Documentation ¶
Index ¶
- func ContainPartial(list []string, partial string) (result []string)
- func ConvertStringSliceToMap(stringSlice []string) (stringInterfaceMap map[string]string)
- func Diff(old, new []net.IP) (add, sub []net.IP)
- func IsInSlice(key string, slice []string) bool
- func IsLetterOrNumber(k string) bool
- func Merge(ms ...[]string) []string
- func RemoveDuplicate(list []string) []string
- func Reverse(s []string) []string
- type Comparator
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainPartial ¶
func ConvertStringSliceToMap ¶ added in v0.9.2
ConvertStringSliceToMap Convert []string to map[string]string
func IsLetterOrNumber ¶
func RemoveDuplicate ¶
Types ¶
type Comparator ¶
func (Comparator) GetDstSubtraction ¶
func (c Comparator) GetDstSubtraction() []string
func (Comparator) GetIntersection ¶
func (c Comparator) GetIntersection() []string
func (Comparator) GetSrcSubtraction ¶
func (c Comparator) GetSrcSubtraction() []string
func (Comparator) GetUnion ¶
func (c Comparator) GetUnion() []string
type Interface ¶
type Interface interface { // GetIntersection get intersection element form between slice. GetIntersection() []string // GetUnion get Union element between two slice. GetUnion() []string // GetSrcSubtraction get different element in src compare to dst. GetSrcSubtraction() []string // GetDstSubtraction get different element in dst compare to src. GetDstSubtraction() []string }
func NewComparator ¶
Click to show internal directories.
Click to hide internal directories.