codec

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDecode

func RunDecode(opts ...Option) error

RunDecode decodes data in the specified format.

func RunEncode

func RunEncode(opts ...Option) error

RunEncode encodes data in the specified format.

Types

type Config

type Config struct {
	Format string
	Input  []byte
	Stdout io.Writer
}

Config holds configuration for encode/decode commands.

type Option

type Option func(*Config)

Option configures a Config.

func WithFormat

func WithFormat(format string) Option

func WithInput

func WithInput(data []byte) Option

func WithStdout

func WithStdout(w io.Writer) Option

Jump to

Keyboard shortcuts

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