parser

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(file File, data any) error

Decode decodes a file into data. The choice of the decoder is based on the file extension.

func Encode

func Encode(data any, dstFile File) error

Encode encodes data into a file. The choice of the encoder is based on the file extension.

Types

type File

type File interface {
	io.ReadWriter
	Name() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL