Skip to content
Myr

chore: use internal/json (#1791)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by 田欧 · committed by GitHub · parent 805b2d4 · Browse files · 3 files+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+6 added−1 removed

  • other:+6 added−1 removed

3 files+6 added−1 removed

modified:binding/form_mapping.go+2 added-1 removed
3 unmodified lines
45package binding67import (8 "encoding/json"8 "errors"9 "reflect"10 "strconv"11 "strings"12 "time"1314 "github.com/gin-gonic/gin/internal/json"15)1617var errUnknownType = errors.New("Unknown type")18
268 unmodified lines
modified:internal/json/json.go+2 added
9 unmodified lines
1011var (12 // Marshal is exported by gin/json package.13 Marshal = json.Marshal14 // Unmarshal is exported by gin/json package.15 Unmarshal = json.Unmarshal16 // MarshalIndent is exported by gin/json package.17 MarshalIndent = json.MarshalIndent18 // NewDecoder is exported by gin/json package.19 NewDecoder = json.NewDecoder
3 unmodified lines
modified:internal/json/jsoniter.go+2 added
10 unmodified lines
11var (12 json = jsoniter.ConfigCompatibleWithStandardLibrary13 // Marshal is exported by gin/json package.14 Marshal = json.Marshal15 // Unmarshal is exported by gin/json package.16 Unmarshal = json.Unmarshal17 // MarshalIndent is exported by gin/json package.18 MarshalIndent = json.MarshalIndent19 // NewDecoder is exported by gin/json package.20 NewDecoder = json.NewDecoder
3 unmodified lines