Discover Packages
github.com/hanzoai/commerce
util
json
http
package
Version:
v1.48.5
Opens a new window with list of versions in this module.
Published: Jul 16, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Fail renders the canonical {"error": …} envelope and ends the request —
callers return it, which is what stops the chain (no gin-style Abort; not
calling Next IS the abort).
Render writes src as JSON with the given status. Handlers return it:
return http.Render(c, 200, out)
type Error struct {
Type string `json:"type"`
Message string `json:"message"`
Code string `json:"code,omitempty"`
Param string `json:"param,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.