diff options
author | Luke Shumaker <lukeshu@datawire.io> | 2022-08-14 20:52:06 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2022-08-15 00:28:47 -0600 |
commit | 58b7df5e9f1c0d4858528f326440599620a8c1fb (patch) | |
tree | dcbe104b42ff22debe4adf767ff1fe69785aa394 /test_export.go | |
parent | 25d0b8365020ef4051dffd4f7704328402914613 (diff) |
Create a compat/json compatibility library
Diffstat (limited to 'test_export.go')
-rw-r--r-- | test_export.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test_export.go b/test_export.go new file mode 100644 index 0000000..1f97a7a --- /dev/null +++ b/test_export.go @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com> +// +// SPDX-License-Identifier: GPL-2.0-or-later + +package lowmemjson + +import ( + "git.lukeshu.com/go/lowmemjson/internal" +) + +func init() { + internal.EncodeStringFromString = encodeString[string] + internal.EncodeStringFromBytes = encodeString[[]byte] +} + +var parseTag = internal.ParseTag |