{"modulePath":"github.com/kelindar/expr","version":"v0.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package encoding\n\nPackage encoding provides stable JSON encoding, hashing, and checksums.\n\n## Functions\n\n```go\nfunc CanonicalJSON(raw []byte) ([]byte, error)\n```\nCanonicalJSON returns the RFC 8785 canonical form of one JSON value.\n\n```go\nfunc Checksum(value any, algorithm string) (string, error)\n```\nChecksum computes the requested compatibility checksum.\n\n```go\nfunc Hash(value any, algorithm string) (string, error)\n```\nHash hashes strings as exact UTF-8 and other values as canonical JSON.\n\n```go\nfunc HexDecode(value string) (string, error)\n```\nHexDecode decodes hexadecimal text and requires valid UTF-8 output.\n\n```go\nfunc HexEncode(value string) string\n```\nHexEncode returns lowercase hexadecimal for the UTF-8 bytes of value.\n\n```go\nfunc Options() []exprlib.Option\n```\nOptions returns the Expr registrations for encoding helpers.\n\n```go\nfunc URLDecode(value, mode string) (string, error)\n```\nURLDecode unescapes value using the explicit query or path\\_segment mode.\n\n```go\nfunc URLEncode(value, mode string) (string, error)\n```\nURLEncode escapes value using the explicit query or path\\_segment mode.\n\n","path":"github.com/kelindar/expr/encoding","name":"encoding","synopsis":"Package encoding provides stable JSON encoding, hashing, and checksums.","isRedistributable":true}
