binngo.Unmarshal   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
nop 2
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