Documentation ¶
Index ¶
- func Open(obj any, filename string) error
- func OpenFS(obj any, fsys fs.FS, file string) error
- func OpenFromPaths(obj any, file string, paths []string) error
- func Read(obj any, reader io.Reader) error
- func ReadBytes(obj any, b []byte) error
- func Save(obj any, file string) error
- func Write(obj any, writer io.Writer) error
- func WriteBytes(obj any) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenFS ¶
OpenFS reads object from given TOML file, using the fs.FS filesystem -- e.g., for embed files.
func OpenFromPaths ¶
OpenFromPaths reads object from given TOML file, looking on paths for the file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.