Files
x/encoding/coder.go
Colin Henry 54aae5f242
All checks were successful
Go / build (1.23) (push) Successful in 3m51s
big updates: tests, bug fixed, documentation. oh my
2026-01-03 15:53:50 -08:00

11 lines
315 B
Go

// Package encoding provides generic encoder and decoder function types.
package encoding
import "io"
// Encoder is a function that encodes data to a writer.
type Encoder func(io.Writer, interface{}) error
// Decoder is a function that decodes data from a reader.
type Decoder func(io.Reader, interface{}) error