Documentation
¶
Index ¶
- func BaseFilename(path string) string
- func EnsurePathExists(path string) error
- func IsDir(path string) bool
- func PathExists(path string) bool
- func ReadJSON[T any](path string) (T, error)
- func ReadJSONList[T any](path string) ([]T, error)
- func ReadJSONMap[V any](path string) (map[string]V, error)
- func SaveIndentedJSON[T any](item T, path string, tabLength int) error
- func SaveJSON[T any](item T, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseFilename ¶
BaseFilename returns the base filename of a path
func EnsurePathExists ¶
EnsurePathExists creates all non-existent parent directories of the given path
func ReadJSONList ¶
ReadJSONList reads a JSON list of given type from given path
func ReadJSONMap ¶
ReadJSONMap reads a JSON map of given value type from given path
func SaveIndentedJSON ¶
SaveIndentedJSON saves indented JSON object to given file path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.