package
0.0.2
Repository: https://github.com/yubo/golib.git
Documentation: pkg.go.dev

# Functions

CaseSensitiveJSONIterator returns a jsoniterator API that's configured to be case-sensitive when unmarshalling, and otherwise compatible with the encoding/json standard library.
IsJSONBuffer scans the provided buffer, looking for an open brace indicating this is JSON.
NewSerializer creates a JSON serializer that handles encoding versioned objects into the proper JSON form.
NewSerializerWithOptions creates a JSON/YAML serializer that handles encoding versioned objects into the proper JSON/YAML form.
NewYAMLSerializer creates a YAML serializer that handles encoding versioned objects into the proper YAML form.
StrictCaseSensitiveJSONIterator returns a jsoniterator API that's configured to be case-sensitive, but also disallows unknown fields when unmarshalling.

# Variables

Framer is the default JSON framing behavior, with newlines delimiting individual objects.
YAMLFramer is the default JSON framing behavior, with newlines delimiting individual objects.

# Structs

Serializer handles encoding versioned objects into the proper JSON form.
SerializerOptions holds the options which are used to configure a JSON/YAML serializer.