Documentation
¶
Index ¶
- func ReadFileJSON(name string, v any) error
- func ReadFileYAML(name string, v any) error
- func ReadJSON(r io.Reader, v any) error
- func ReadYAML(r io.Reader, v any) error
- func UserCacheDir() string
- func UserConfigDir() string
- func UserHomeDir() string
- func WriteFileJSON(name string, v any, perm os.FileMode) error
- func WriteFileYAML(name string, v any, perm os.FileMode) error
- func WriteJSON(w io.Writer, v any) error
- func WriteYAML(w io.Writer, v any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileJSON ¶
ReadFileJSON reads the named file and unmarshals the content in the value pointed to by v.
func ReadFileYAML ¶
ReadFileYAML reads the named file and unmarshals the content in the value pointed to by v.
func ReadJSON ¶
ReadJSON reads from r until an error or EOF and unmarshals the data in the value pointed to by v.
func ReadYAML ¶
ReadYAML reads from r until an error or EOF and unmarshals the data in the value pointed to by v.
func UserCacheDir ¶
func UserCacheDir() string
UserCacheDir an alias to os.UserCacheDir, but panics on error.
func UserConfigDir ¶
func UserConfigDir() string
UserConfigDir an alias to os.UserConfigDir, but panics on error.
func UserHomeDir ¶
func UserHomeDir() string
UserHomeDir an alias to os.UserHomeDir, but panics on error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.