mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 12:41:54 +03:00
14 lines
225 B
Go
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)
|
|
}
|