Package easyjson contains marshaler/unmarshaler interfaces and helper functions.
Marshal returns data as a single byte slice. Method is suboptimal as the data is likely to be copied from a chain of smaller chunks.
MarshalToHTTPResponseWriter sets Content-Length and Content-Type headers for the http.ResponseWriter, and send the data to the writer. started will be equal to false if an error occurred before any http.ResponseWriter methods were actually invoked (in this case a 500 reply is possible).
MarshalToWriter marshals the data to an io.Writer.
Unmarshal decodes the JSON in data into the object.
UnmarshalFromReader reads all the data in the reader and decodes as JSON into the object.
Marshaler is an easyjson-compatible marshaler interface.
Optional defines an undefined-test method for a type to integrate with 'omitempty' logic.
RawMessage is a raw piece of JSON (number, string, bool, object, array or null) that is extracted without parsing and output as is during marshaling.
IsDefined is required for integration with omitempty easyjson logic.
MarshalEasyJSON does JSON marshaling using easyjson interface.
MarshalJSON implements encoding/json.Marshaler interface.
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
UnmarshalJSON implements encoding/json.Unmarshaler interface.
Marshaler is an easyjson-compatible unmarshaler interface.
|benchmark||Package benchmark provides a simple benchmark for easyjson against default serialization and ffjson.|
|bootstrap||Package bootstrap implements the bootstrapping logic: generation of a .go file to launch the actual generator and launching the generator itself.|
|buffer||Package buffer implements a buffer for serialization, consisting of a chain of byte-s to reduce copying and to allow reuse of individual chunks.|
|jlexer||Package jlexer contains a JSON lexer implementation.|
|jwriter||Package jwriter contains a JSON writer.|