Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode converts the provided object to the specified format and returns a byte slice of the encoded data.
func EncodeTo ¶
EncodeTo converts the provided object to the specified format and writes the encoded data to the provided io.Writer.
func EncodeToJSONGzip ¶ added in v1.11.0
EncodeToJSONGzip takes arbitrary Go data and encodes it to GZip compressed JSON in a buffer, as well as a description of the data to put into an error should encoding fail.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.