Discover Packages
github.com/germanoeich/arikawa/v3
utils
json
enum
package
Version:
v3.0.0-...-04a954d
Opens a new window with list of versions in this module.
Published: Jun 17, 2021
License: ISC
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Null is the value used to represent JSON null.
It should never be used as a value, as it won't get serialized as such.
Int8ToJSON converts the passed Enum to a byte slice with it's JSON representation.
Enum is a nullable version of a uint32.
Enum values should only consist of positive values, as negative values are reserved for internal constants, such as
Null.
This also means that only 31 of the 32 bits will be available for storage.
Int8FromJSON decodes the Enum stored as JSON src the passed byte slice.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.