From 636311bafdb18da9851a668317a8d792f38ead5b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 28 Jan 2023 13:39:42 -0700 Subject: Move the base64 decode to the internal package --- decode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decode.go') diff --git a/decode.go b/decode.go index f237b2b..f351037 100644 --- a/decode.go +++ b/decode.go @@ -669,13 +669,13 @@ func (dec *Decoder) decode(val reflect.Value, nullOK bool) { case internal.RuneTypeStringBeg: if typ.Elem() == byteType { var buf bytes.Buffer - dec.decodeString(typ, newBase64Decoder(&buf)) + dec.decodeString(typ, internal.NewBase64Decoder(&buf)) val.Set(reflect.ValueOf(buf.Bytes())) } else { // TODO: Surely there's a better way. At the very least, we should // avoid buffering. var buf bytes.Buffer - dec.decodeString(typ, newBase64Decoder(&buf)) + dec.decodeString(typ, internal.NewBase64Decoder(&buf)) bs := buf.Bytes() val.Set(reflect.MakeSlice(typ, len(bs), len(bs))) for i := 0; i < len(bs); i++ { -- cgit v1.2.3-54-g00ecf