feat: cli versions
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user