feat: repr, codec
This commit is contained in:
12
pkg/codec/codec.go
Normal file
12
pkg/codec/codec.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user