summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-26 22:31:32 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 21:01:42 -0700
commitff6dc0bc519886905e758a84e572f5e34d6c03d1 (patch)
tree8906c4b8bb0c7dc468419efc17b872db62a4e068 /common.go
parentd1b5bc1f05624614f43ef85597f4aa9d7a166d23 (diff)
Move things between files
Diffstat (limited to 'common.go')
-rw-r--r--common.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/common.go b/common.go
new file mode 100644
index 0000000..90156b9
--- /dev/null
+++ b/common.go
@@ -0,0 +1,16 @@
+// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com>
+//
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package lowmemjson
+
+import (
+ "encoding/json"
+ "reflect"
+)
+
+var (
+ numberType = reflect.TypeOf(json.Number(""))
+ byteType = reflect.TypeOf(byte(0))
+ byteSliceType = reflect.TypeOf(([]byte)(nil))
+)