Documentation ¶
Index ¶
- func ContainsString(universe []string, candidate string) bool
- func IndexOfString(universe []string, candidate string) int
- func IntArrayToString(input []int) []string
- func ReadLines(path string) ([]string, error)
- func RemoveIntAtIndex(arr []int, index int) ([]int, error)
- func RemoveStringAtIndex(arr []string, index int) ([]string, error)
- func ReverseArrayInt(a []int) []int
- func StringArrayToInt(input []string) ([]int, error)
- func StringSplitNewline(s string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString returns true if the array contains the candidate string.
func IndexOfString ¶
IndexOfString returns the index of the first occurrence of t in arr. Returns -1 if not found.
func IntArrayToString ¶
IntArrayToString turns an array of ints into an array of strings.
func RemoveIntAtIndex ¶
RemoveIntAtIndex returns a slice with the index missing
func RemoveStringAtIndex ¶
RemoveStringAtIndex returns a slice with the index missing
func StringArrayToInt ¶
StringArrayToInt turns an array of strings into an array of ints.
func StringSplitNewline ¶
StringSplitNewline provides cross-platform splitting s is the string to split. If s contains \r\n, that's used as the separator. Otherwise, \n is used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.