package
0.3.0
Repository: https://github.com/demomanito/go-tools.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

FindIndex The method returns the index of the first element in the array that satisfies the provided testing function.
Include slice or array include an item.
Uniq deduplicate and return the deduplicated slice/array/struct params: <data> array to be deduplicated params: <args> tag and tag_name for structs int: [1,1,2,2,3,3] => [1,2,3] string: ["1","1","2","2","3","3"] => ["1","2","3"] struct: type test struct { A int `json:"a"` B int `json:"b"` } data=[{A:1, B:1}, {A:2, B:2}, {A:1, B:3}] Uniq(data, "json", "a") => [{A:1, B:1}, {A:1, B:3}] */.
UniqIndex returns the index of the repeated data.
UniqItem return duplicate elements.