Documentation ¶
Index ¶
- func AppendAt(slice []string, pos int, insert ...string) []string
- func CheckForDupSl2d(sl [][]string) bool
- func CmpRemSl2d(sl1, sl2 [][]string) (outSlice [][]string)
- func DeleteSlIface(slice interface{}, idx int) bool
- func GetStrIndex(slice []string, item string) int
- func GetStrIndex2dCol(slice [][]string, value string, col int) int
- func IsExist2d(slice [][]string, cmpRow []string) bool
- func IsExist2dCol(slice [][]string, value string, col int) bool
- func IsExistSl(slice []string, item string) bool
- func IsExistSlIface(slice interface{}, item interface{}) int
- func Preppend(slice []string, prepend ...string) []string
- func RemDupSlIface(slice1, slice2 interface{}) bool
- func RemoveDupSl(slice []string) []string
- func RemoveDupSl2d(slice [][]string, col int) (outSlice [][]string)
- func SearchSl(find string, table [][]string, ...) (out [][]string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForDupSl2d ¶
CheckForDupSl2d: Return true if duplicated row is found
func CmpRemSl2d ¶
CmpRemSl2d: Compare slice1 and slice2 if row exist on both, the raw is removed from slice2 and result returned.
func DeleteSlIface ¶
DeleteSlIface: designed to accept all types. Return true on success. NOTE: 'slice' argument MUST be given as pointer '&'
func GetStrIndex ¶
GetStrIndex: Get index of a string in a slice, Return -1 if no entry found ...
func GetStrIndex2dCol ¶
GetStrIndex2dCol: Search in 2d string slice if a column's value exist and return row number.
func IsExist2dCol ¶
IsExist2dCol: Search in 2d string slice if a column's value exist.
func IsExistSlIface ¶
func IsExistSlIface(slice interface{}, item interface{}) int
IsExistSlIface: Same as above but designed to accept all types. Return the position whether it found or -1 if not.
func RemDupSlIface ¶
func RemDupSlIface(slice1, slice2 interface{}) bool
RemDupSlIface: Designed to accept all types. Remove duplicate entries Returns true if something has changed, false otherwise. NOTE: 'slice' argument MUST be given as pointer '&'
func RemoveDupSl ¶
RemoveDupSl: Remove duplicate entry in a string slice
func RemoveDupSl2d ¶
RemoveDupSl2d: Remove duplicate entry in a 2d string slice based on column number content.
Types ¶
This section is empty.