encoder

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	// EncodeExtended provides a way to encode extra information, specifically
	// the origin information (filename, line number, column) as comments or
	// other metadata about the field along with the rest of the structure.
	EncodeExtended(m meta.Object) ([]byte, error)

	// Encode provides a way to encode a normal map[string]any style of output.
	// Nothing special is expected.
	Encode(v any) ([]byte, error)

	// Extensions provides the list of extensions this decoder is able to decode.
	Extensions() []string
}

Encoder provides the encoder interface for goschtalt to use.

Jump to

Keyboard shortcuts

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