Discover Packages
github.com/kelindar/expr
encoding
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 1, 2026
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package encoding provides stable JSON encoding, hashing, and checksums.
func CanonicalJSON(raw []byte) ([]byte, error)
func Checksum(value any, algorithm string) (string, error)
func Hash(value any, algorithm string) (string, error)
func HexDecode(value string) (string, error)
func HexEncode(value string) string
func Options() []exprlib.Option
func URLDecode(value, mode string) (string, error)
func URLEncode(value, mode string) (string, error)
CanonicalJSON returns the RFC 8785 canonical form of one JSON value.
Checksum computes the requested compatibility checksum.
Hash hashes strings as exact UTF-8 and other values as canonical JSON.
HexDecode decodes hexadecimal text and requires valid UTF-8 output.
HexEncode returns lowercase hexadecimal for the UTF-8 bytes of value.
Options returns the Expr registrations for encoding helpers.
URLDecode unescapes value using the explicit query or path_segment mode.
URLEncode escapes value using the explicit query or path_segment mode.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.