codec

package
v0.0.0-...-e964040 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeOptions

type DecodeOptions struct {
	FileName string
	Reader   io.Reader
}

DecodeOptions 从文件或 io.Reader 中加载

type Decoder

type Decoder interface {
	Decode(v interface{}) error
}

type MarshalOptions

type MarshalOptions struct {
	// Indent 格式化输出
	Indent bool
}

MarshalOptions .

type Marshaler

type Marshaler interface {
	Marshal(v interface{}) ([]byte, error)
	Unmarshal(data []byte, v interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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