package
1.0.7
Repository: https://github.com/atselvan/go-utils.git
Documentation: pkg.go.dev

# Functions

CompareStringSlice compares two slices of strings.
CountDuplicateEntries counts the number of times a entry repeats in a slice of strings The function returns a map with the unique entries in the slice as keys and the duplicate frequencies of the unique entries of the slice.
DuplicateEntryExists checks if a slice has duplicate entries or not The function returns a boolean response true : the slice contains duplicate entries func : the slice does not contain duplicate entries.
EntryExists checks if an entry exists in a slice of strings The function returns a boolean value: true if the entry exists or false if the entry does not exist.
GetSliceEntryIndex returns the index of an entry in a slice of strings The function returns an integer value of the index of the first occurrence of the slice entry.
RemoveDuplicateEntries removes duplicate entries in a slice of strings The function returns a slice with unique string entries.
RemoveEntryFromSlice removes a entry from a slice of strings The function removed the first occurrence of the entry and then returns the updated slice back If the Entry does not exist then the function returns the same slice back.