diff options
Diffstat (limited to 'common.go')
-rw-r--r-- | common.go | 16 |
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)) +) |