encoders

package
v0.0.0-...-015e77e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidID = ""

InvalidID is an invalid encoder id.

Variables

View Source
var DefaultID = "0x954535"

DefaultID can be used with a SecureEncoderExtension instead of a set id. When used, it will be replaced with a randomly generated 8 character hex id for the encoder. #954535 is hex color code for Chestnut. https://en.wikipedia.org/wiki/Chestnut_(color)

Functions

func NewEncoder

func NewEncoder() jsoniter.API

NewEncoder returns a new encoder with a _clean_ configuration and _no_ registered extensions. Extensions registered to this encoder will not impact the global encoder. Config options match jsoniter ConfigCompatibleWithStandardLibrary.

func NewEncoderID

func NewEncoderID() string

NewEncoderID returns a new random encoder id as a hex string. This id is not guaranteed to be unique and does not have to be. It is only used internally in the encoder so there is no risk of collision.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL