Documentation
¶
Index ¶
Constants ¶
View Source
const ProjectName = "Go-MMP"
Variables ¶
This section is empty.
Functions ¶
func CheckFileExists ¶
CheckFileExists will check if file is there, and is readable Returns a bool with the answer
func SliceContains ¶
func SliceContains[T comparable](slic *[]T, item T) (index int, isFound bool)
Return index of match, isFound if a value in in a slice If there's no match, index is -1
func StringToInt ¶
Convert a string to an integer, if possible. If not, return an error
Types ¶
type ErrCannotParseIntFromEmptyString ¶
type ErrCannotParseIntFromEmptyString struct{}
Errors
func (ErrCannotParseIntFromEmptyString) Error ¶
func (e ErrCannotParseIntFromEmptyString) Error() string
Click to show internal directories.
Click to hide internal directories.