mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 15:09:51 +00:00
* CI: Replace docker amd64 with native runner, switch Docker test arch to amd64 * tests: Remove spaces and new lines from test JSON timestamp fields * builds: Disable sonic for arm64 due to OKX unmarshal issue * nits: Improve Dockerfile comment and fix build tag
17 lines
695 B
Go
17 lines
695 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`, '386' or 'arm64' 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
|
|
)
|