summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 21:54:38 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 21:54:38 -0700
commit8467bdaa181257d031a258a05012dc85adbcb233 (patch)
treebc9bf437a34905f0b7249352043aff9e9d80ebe8 /common.go
parent0b57145421e7e4f165f64e73ee7c5d8102945569 (diff)
parent2e48a42fb9b9e946958810cfbb90ae85bee997e4 (diff)
Merge branch 'lukeshu/quality2'
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))
+)