mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +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
26 lines
1.2 KiB
Go
26 lines
1.2 KiB
Go
//go:build !sonic_off && !386 && !arm64
|
|
|
|
package json
|
|
|
|
import (
|
|
"github.com/bytedance/sonic"
|
|
)
|
|
|
|
// Implementation is a constant string that represents the current JSON implementation package
|
|
const Implementation = "bytedance/sonic"
|
|
|
|
var (
|
|
// Marshal returns the JSON encoding of v. See the "github.com/bytedance/sonic" documentation for Marshal
|
|
Marshal = sonic.ConfigStd.Marshal
|
|
// Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v. See the "github.com/bytedance/sonic" documentation for Unmarshal
|
|
Unmarshal = sonic.ConfigStd.Unmarshal
|
|
// NewEncoder returns a new encoder that writes to w. See the "github.com/bytedance/sonic" documentation for NewEncoder
|
|
NewEncoder = sonic.ConfigStd.NewEncoder
|
|
// NewDecoder returns a new decoder that reads from r. See the "github.com/bytedance/sonic" documentation for NewDecoder
|
|
NewDecoder = sonic.ConfigStd.NewDecoder
|
|
// MarshalIndent is like Marshal but applies Indent to format the output. See the "github.com/bytedance/sonic" documentation for MarshalIndent
|
|
MarshalIndent = sonic.ConfigStd.MarshalIndent
|
|
// Valid reports whether data is a valid JSON encoding. See the "github.com/bytedance/sonic" documentation for Valid
|
|
Valid = sonic.ConfigStd.Valid
|
|
)
|