mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
* tag optional sonic and allow full library conversion * Add workflow and disallow arm and darwin usage * Add basic hotswap benchmark * linter: fix * use bash * linter: fix? * Fix whoopsie, add to make file, also add mention in features list. * test enforcement * actually read documentation see if this works * linter: fix * linter: fix * sonic: bump tagged version * encoding/json: drop build tag arch and os filters * encoding/json: consolidate tests * encoding/json: log build tag usage * rm superfluous builds * glorious/nits: add template change and regen docs * glorious/nits: update commentary on nolint directive * glorious/nits: rm init func and log results in main.go * Test to actually pull flag in * linter: fix * thrasher: nits * gk: nits 4 goflags goooooooooo! * gk: nits rn * make sonic default json implementation * screen 386 * linter: fix * Add commentary * glorious: nits Makefile not working * gk: nits * gk: nits whoops * whoopsirino * mention 32bit systems won't be sonic * gk: super-duper nit of extremes --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
17 lines
686 B
Go
17 lines
686 B
Go
// json is an abstraction middleware package to allow switching between json encoder/decoder implementations
|
|
// The default implementation is sonic.
|
|
// Build with `sonic_off` or `386` tags to switch to golang.org/encoding/json.
|
|
package json
|
|
|
|
import "encoding/json" //nolint:depguard // Acceptable use in gct json wrapper
|
|
|
|
type (
|
|
// RawMessage is a raw encoded JSON value.
|
|
// It implements [Marshaler] and [Unmarshaler] and can
|
|
// be used to delay JSON decoding or precompute a JSON encoding.
|
|
RawMessage = json.RawMessage
|
|
// An UnmarshalTypeError describes a JSON value that was
|
|
// not appropriate for a value of a specific Go type.
|
|
UnmarshalTypeError = json.UnmarshalTypeError
|
|
)
|