Documentation
¶
Overview ¶
Package sliceutil provides methods for working with slices
Index ¶
- func Contains(slice []string, value string) bool
- func Deduplicate(slice []string) []string
- func ErrorToString(data []error) []string
- func Exclude(slice, items []string) []string
- func Index(slice []string, item string) int
- func IntToInterface(data []int) []interface{}
- func StringToError(data []string) []error
- func StringToInterface(data []string) []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deduplicate ¶
Deduplicate removes duplicates from slice. Slice must be sorted before deduplication.
func ErrorToString ¶
ErrorToString converts slice with errors to slice with strings
func IntToInterface ¶
func IntToInterface(data []int) []interface{}
IntToInterface converts slice with ints to slice with interface{}
func StringToError ¶
StringToError converts slice with strings to slice with errors
func StringToInterface ¶
func StringToInterface(data []string) []interface{}
StringToInterface converts slice with strings to slice with interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.