13 lines
217 B
Go
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)
|
|
}
|