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) }