Documentation ¶
Overview ¶
Package util contains internals used across the other prose packages.
Index ¶
- func CheckError(err error)
- func ContainsAny(a string, b []string) bool
- func HasAnySuffix(a string, slice []string) bool
- func IsAlnum(c byte) bool
- func IsLetter(c byte) bool
- func IsPunct(c byte) bool
- func IsSpace(c byte) bool
- func Min(a, b int) int
- func ReadDataFile(path string) []byte
- func StringInSlice(a string, slice []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAny ¶
ContainsAny determines if the string a contains any fo the strings contained in the slice b.
func HasAnySuffix ¶
HasAnySuffix determines if the string a has any suffixes contained in the slice b.
func ReadDataFile ¶
ReadDataFile reads data from a file, panicking on any errors.
func StringInSlice ¶
StringInSlice determines if `slice` contains the string `a`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.