Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidJSONCadence = errors.New("invalid JSON Cadence structure")
Functions ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
A Decoder decodes JSON-encoded representations of Cadence values.
func NewDecoder ¶
NewDecoder initializes a Decoder that will decode JSON-encoded bytes from the given io.Reader.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
An Encoder converts Cadence values into JSON-encoded bytes.
func NewEncoder ¶
NewEncoder initializes an Encoder that will write JSON-encoded bytes to the given io.Writer.
Click to show internal directories.
Click to hide internal directories.