diff options
author | Michael Grosshans <michael.grosshans@freiheit.com> | 2017-01-03 16:34:35 +0100 |
---|---|---|
committer | Michael Grosshans <michael.grosshans@freiheit.com> | 2017-01-03 16:34:35 +0100 |
commit | 43e530dce9a3833c7fdcbf527b757581e5e37657 (patch) | |
tree | 20225a7cdbd8ee9b921a51b5b7d8883cd3eb18f3 /ber.go | |
parent | fix typo (diff) | |
download | asn1-ber-43e530dce9a3833c7fdcbf527b757581e5e37657.tar asn1-ber-43e530dce9a3833c7fdcbf527b757581e5e37657.tar.gz asn1-ber-43e530dce9a3833c7fdcbf527b757581e5e37657.tar.bz2 asn1-ber-43e530dce9a3833c7fdcbf527b757581e5e37657.tar.lz asn1-ber-43e530dce9a3833c7fdcbf527b757581e5e37657.tar.xz asn1-ber-43e530dce9a3833c7fdcbf527b757581e5e37657.tar.zst asn1-ber-43e530dce9a3833c7fdcbf527b757581e5e37657.zip |
Diffstat (limited to 'ber.go')
-rw-r--r-- | ber.go | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -255,12 +255,8 @@ func ReadPacket(reader io.Reader) (*Packet, error) { return p, nil } -func DecodeString(data []byte) (ret string) { - for _, c := range data { - ret += fmt.Sprintf("%c", c) - } - - return +func DecodeString(data []byte) (string) { + return string(data) } func DecodeInteger(data []byte) (ret uint64) { |