Documentation ¶
Index ¶
- 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 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 YAML encoding, using the given fs.FS filesystem (e.g., for embed files)
func OpenFilesFS ¶
OpenFilesFS reads the given object from the given filenames using YAML encoding, using the given fs.FS filesystem (e.g., for embed files)
func WriteBytes ¶
WriteBytes writes the given object, returning bytes of the encoding, using YAML encoding
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.