diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-10 21:48:38 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-10 21:48:38 -0700 |
commit | 95180a90db47990d32104ff7ab103e4862fd8426 (patch) | |
tree | 7733466fac856d93bfb6d6100fd703830a915567 /internal | |
parent | e9f3bdc767027d134a072e09f16bcccac75fa59f (diff) | |
parent | ddffd7b78d81f1b47b5829eb9ff0aa1887cc3b17 (diff) |
Merge branch 'lukeshu/misc'
Diffstat (limited to 'internal')
-rw-r--r-- | internal/jsonstruct/struct.go | 2 | ||||
-rw-r--r-- | internal/jsontest/jsontest.go | 14 |
2 files changed, 1 insertions, 15 deletions
diff --git a/internal/jsonstruct/struct.go b/internal/jsonstruct/struct.go index 16c45de..20e82ca 100644 --- a/internal/jsonstruct/struct.go +++ b/internal/jsonstruct/struct.go @@ -63,7 +63,7 @@ func indexStructReal(typ reflect.Type) StructIndex { ret.ByName[name] = len(ret.ByPos) ret.ByPos = append(ret.ByPos, _field) default: - // To quote the encoding/json docs (version 1.18.4): + // To quote the encoding/json docs (version 1.20): // // If there are multiple fields at the same level, and that level is the // least nested (and would therefore be the nesting level selected by the diff --git a/internal/jsontest/jsontest.go b/internal/jsontest/jsontest.go deleted file mode 100644 index fbc775d..0000000 --- a/internal/jsontest/jsontest.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com> -// -// SPDX-License-Identifier: GPL-2.0-or-later - -package jsontest - -import ( - "io" -) - -var ( - EncodeStringFromBytes func(io.Writer, []byte) - EncodeStringFromString func(io.Writer, string) -) |