package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Nov 6, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package encodingx provides bounded serialization with typed errors.
Error contains a typed serialization failure with its underlying cause.
Error returns a diagnostic error description.
Unwrap returns the underlying wrapped resource or error cause.
type JSON struct{ MaxBytes int }
JSON implements bounded standard JSON serialization.
Decode decodes a size-bounded representation into the destination.
Encode serializes a value and enforces its configured size limit.
type Raw struct{ MaxBytes int }
Raw copies bounded byte representations.
Decode decodes a size-bounded representation into the destination.
Encode serializes a value and enforces its configured size limit.
Serializer encodes and decodes transport representations.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.