mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 22:40:58 +03:00
Initial commit
This commit is contained in:
13
adapters/repository/badger/marshal.go
Normal file
13
adapters/repository/badger/marshal.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package badger
|
||||
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user