Documentation ¶
Index ¶
- func NewDecoder(r io.Reader) grows.Decoder
- func NewEncoder(w io.Writer) grows.Encoder
- func Open(v any, filename string) error
- func OpenFS(v any, fsys fs.FS, filename string) error
- func OpenFiles(v any, filenames []string) error
- func OpenFilesFS(v any, fsys fs.FS, filenames []string) error
- func OpenFromPaths(v any, file string, paths []string) error
- func Read(v any, reader io.Reader) error
- func ReadBytes(v any, data []byte) error
- func Save(v any, filename string) error
- func Write(v any, writer io.Writer) error
- func WriteBytes(v any) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenFS ¶
OpenFS reads the given object from the given filename using TOML encoding, using the given fs.FS filesystem (e.g., for embed files)
func OpenFilesFS ¶
OpenFilesFS reads the given object from the given filenames using TOML encoding, using the given fs.FS filesystem (e.g., for embed files)
func OpenFromPaths ¶
OpenFromPaths reads the given object from the given TOML file, looking on paths for the file.
func WriteBytes ¶
WriteBytes writes the given object, returning bytes of the encoding, using TOML encoding
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.