Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CutPrefix ¶
CutPrefix behaves like strings.Cut, but only cuts a prefix, not anywhere in the string.
func CutTwice ¶
CutTwice calls strings.Cut twice to split s into three strings. If either separator isn't found in s, returns s, "", "", false.
func ReadJSONFile ¶
ReadJSONFile reads one JSON value from the specified file.
func WriteJSONFile ¶
WriteJSONFile writes one specified value to a file as indented JSON with a trailing newline.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.