encoder

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSON = iota
	TOML
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(v interface{}) error
}

type ExportEncoder

type ExportEncoder struct {
	// contains filtered or unexported fields
}

func NewExportEncoder

func NewExportEncoder(w io.Writer, encType int) *ExportEncoder

func (*ExportEncoder) Encode

func (ee *ExportEncoder) Encode(v interface{}) error

Jump to

Keyboard shortcuts

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