summaryrefslogtreecommitdiffstats
path: root/ber.go
diff options
context:
space:
mode:
authorMichael Grosshans <michael.grosshans@freiheit.com>2017-01-03 16:34:35 +0100
committerMichael Grosshans <michael.grosshans@freiheit.com>2017-01-03 16:34:35 +0100
commit43e530dce9a3833c7fdcbf527b757581e5e37657 (patch)
tree20225a7cdbd8ee9b921a51b5b7d8883cd3eb18f3 /ber.go
parentfix typo (diff)
downloadasn1-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 '')
-rw-r--r--ber.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/ber.go b/ber.go
index 3e99a27..5f95e0a 100644
--- a/ber.go
+++ b/ber.go
@@ -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) {