Versions in this module Expand all Collapse all v1 v1.1.0 Mar 14, 2026 v1.0.0 Mar 13, 2026 Changes in this version + const AuthInvalid + const AuthRequired + const Conflict + const FileNotFound + const HTTPError + const NotFound + const RateLimited + const UnknownError + const Unsupported + const ValidationError + func ErrorEnvelope(code, message string) ([]byte, error) + func ErrorFromContractError(ce *ContractError) ([]byte, error) + func NewError(code, message string) error + func Render(w io.Writer, envelope []byte, pretty bool) error + func RequireAtLeastOne(flags map[string]string) error + func RequireExactlyOne(flags map[string]string) error + func RequireFlag(name, value string) error + func Success(data any) ([]byte, error) + func ValidateFilePath(path string) error + func ValidateISO8601(value string) error + func ValidateISO8601Optional(value string) error + func ValidateURL(value string) error + type ContractError struct + Code string + Message string + func (e *ContractError) Error() string