From 14f91378e2c4bc970b41ec8e940eda9e897bbc0f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 14 Jul 2015 14:09:38 +0200 Subject: Update example --- ber/bits.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ber/bits.go') diff --git a/ber/bits.go b/ber/bits.go index 3d1ca41..4eb6c05 100644 --- a/ber/bits.go +++ b/ber/bits.go @@ -3,7 +3,7 @@ package ber // BitString type Bits []bool -func parseBitString(b []byte) (bs Bits) { +func UnmarshalBitString(b []byte) (bs Bits) { padding := int(b[0]) length := (len(b)-1)*8 - padding for i := 0; i < length; i++ { @@ -15,10 +15,6 @@ func parseBitString(b []byte) (bs Bits) { return } -func UnmarshalBitString(b []byte) Bits { - return parseBitString(b) -} - func (bs Bits) String() (s string) { bmap := map[bool]string{ true: "1", -- cgit v1.2.3