Files
lambda/pkg/codec/codec.go
2026-01-30 16:24:17 -05:00

13 lines
217 B
Go

package codec
import "git.maximhutz.com/max/lambda/pkg/repr"
type String string
func (s String) Id() string { return "string" }
type Codec[T, U repr.Repr] interface {
Encode(T) (U, error)
Decode(U) (T, error)
}