From 2e701c627f5211cf3e8768380f41c020b434cf2f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 27 Sep 2015 15:30:19 +0200 Subject: Add Raw type --- ber/common.go | 2 ++ ber/encode.go | 2 ++ 2 files changed, 4 insertions(+) (limited to 'ber') diff --git a/ber/common.go b/ber/common.go index 7c4f496..b9e359a 100644 --- a/ber/common.go +++ b/ber/common.go @@ -75,3 +75,5 @@ func (o BitString) String() string { } return s } + +type Raw []byte diff --git a/ber/encode.go b/ber/encode.go index 87f19f1..9e085c4 100644 --- a/ber/encode.go +++ b/ber/encode.go @@ -9,6 +9,7 @@ type encodeState struct { bytes.Buffer } +/* func Marshal(v interface{}) ([]byte, error) { e := &encodeState{} err := e.marshal(v) @@ -17,6 +18,7 @@ func Marshal(v interface{}) ([]byte, error) { } return e.Bytes(), nil } +*/ func (e *encodeState) marshal(v interface{}) (err error) { e.reflectValue(reflect.ValueOf(v)) -- cgit v1.2.3