feat: cli versions

This commit is contained in:
2026-01-30 17:54:47 -05:00
parent 0ec52008bb
commit 0cdce0e42c
17 changed files with 177 additions and 335 deletions

View File

@@ -1,12 +1,8 @@
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 {
type Codec[T, U any] interface {
Encode(T) (U, error)
Decode(U) (T, error)
}
type Marshaler[T any] = Codec[T, string]