From 1dc2ea374c4595cfcb550e3519278dab57b54be2 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 26 Jun 2015 20:29:11 +0200 Subject: Add String marshaler/unmarshaler --- ber/string.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ber/string.go (limited to 'ber/string.go') diff --git a/ber/string.go b/ber/string.go new file mode 100644 index 0000000..77d0ea4 --- /dev/null +++ b/ber/string.go @@ -0,0 +1,9 @@ +package ber + +func marshalString(s string) []byte { + return []byte(s) +} + +func unmarshalString(b []byte) string { + return string(b) +} -- cgit v1.2.3