Documentation ¶
Index ¶
- func Fuzzy(needle, haystack string) bool
- func FuzzySlice[T comparable](needle, haystack []T) bool
- func ReadGob(r io.Reader, i any) error
- func ReadGobFile(path string, i any) error
- func ReadJson(r io.Reader, i any) error
- func ReadJsonFile(path string, i any) error
- func WriteGob(w io.Writer, obj any) error
- func WriteGobFile(path string, obj any) error
- func WriteJson(w io.Writer, obj any) error
- func WriteJsonFile(path string, obj any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fuzzy ¶
Fuzzy tests if a given haystack contains a given needle.
If the needle can be found one character at a time in the haystack, even if the haystack has extra characters omitted in the needle, this function returns true.
func FuzzySlice ¶
func FuzzySlice[T comparable](needle, haystack []T) bool
FuzzySlice tests if a given haystack contains a given needle.
If the needle can be found one byte at a time in the haystack, even if the haystack has extra bytes omitted in the needle, this function returns true.
func ReadGobFile ¶
ReadGobFile reads a Go object from a file.
func ReadJsonFile ¶
ReadJsonFile reads a JSON object from a file.
func WriteGobFile ¶
WriteGobFile writes a Go object to a file.
func WriteJsonFile ¶
WriteJsonFile writes a JSON object to a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.