summaryrefslogtreecommitdiff
path: root/test_export.go
diff options
context:
space:
mode:
Diffstat (limited to 'test_export.go')
-rw-r--r--test_export.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test_export.go b/test_export.go
index ccac2b2..76d29d2 100644
--- a/test_export.go
+++ b/test_export.go
@@ -5,12 +5,14 @@
package lowmemjson
import (
+ "io"
+
"git.lukeshu.com/go/lowmemjson/internal"
)
func init() {
- internal.EncodeStringFromString = encodeStringFromString
- internal.EncodeStringFromBytes = encodeStringFromBytes
+ internal.EncodeStringFromString = func(w io.Writer, s string) { encodeStringFromString(w, nil, s) }
+ internal.EncodeStringFromBytes = func(w io.Writer, s []byte) { encodeStringFromBytes(w, nil, s) }
}
var parseTag = internal.ParseTag