1 | package binngo |
||
2 | |||
3 | import ( |
||
4 | "github.com/et-nik/binngo/decode" |
||
5 | "github.com/et-nik/binngo/encode" |
||
6 | ) |
||
7 | |||
8 | func Marshal(v interface{}) ([]byte, error) { |
||
9 | return encode.Marshal(v) |
||
10 | } |
||
11 | |||
12 | func Unmarshal(data []byte, v interface{}) error { |
||
13 | return decode.Unmarshal(data, v) |
||
14 | } |
||
15 |