Documentation ¶
Index ¶
- func Abs(i int) int
- func FileError(err error)
- func ReadFile(f string) ([]string, error)
- func ReadLine(f string) (string, error)
- func ReadSpaceSeparatedFileToInt(input string) ([][]int, error)
- func ReadSpaceSeparatedFileToStr(input string) ([][]string, error)
- func RemoveElementInSlice(slice []int, i int) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFile ¶
ReadFile reads lines of text file f into slices of strings. It returns any error it encounters.
func ReadLine ¶
readLine reads the text file f and flattens it as a single string. It returns any error it encounters.
func ReadSpaceSeparatedFileToInt ¶
ReadSpaceSeparatedFileToInt reads the text file `input` to a matrix of integers. It returns any error it encounters.
func ReadSpaceSeparatedFileToStr ¶
ReadSpaceSeparatedFileToStr reads the text file `input` to a matrix of strings. It returns any error it encounters.
func RemoveElementInSlice ¶
RemoveElementInSlice returns a new slice with the element at index i removed, without modifying the original slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.