feat: repr, codec

This commit is contained in:
2026-01-30 16:24:17 -05:00
parent f2c8d9f7d2
commit 0ec52008bb
8 changed files with 51 additions and 23 deletions

12
pkg/codec/codec.go Normal file
View File

@@ -0,0 +1,12 @@
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)
}