Files
webarchive/adapters/repository/badgers3/marshal.go
2023-11-01 13:00:32 +03:00

14 lines
225 B
Go

package badgers3
import (
"github.com/vmihailenco/msgpack/v5"
)
func marshal(v interface{}) ([]byte, error) {
return msgpack.Marshal(v)
}
func unmarshal(b []byte, v interface{}) error {
return msgpack.Unmarshal(b, v)
}