Skip to Content
Mino

Packages and defaults

Choose a package, follow its guide, and check default settings.

简体中文 ↗

Choose a package

GuideResponsibilityAPI
core/jsonxJSON encoding, decoding, and codecsAPI
core/errorxError wrapping, sequencing, and concurrent aggregationAPI
core/mappingTagged field binding and conversionAPI
rest/chainStandard HTTP middleware compositionAPI
rest/httpxRequest binding, validation, errors, and JSON responsesAPI
restRouting, groups, mounts, and path policiesAPI

Defaults

SettingDefaultConfiguration
JSON codecencoding/jsonjsonx.SetCodec, process-wide
JSON body limit8 MiBhttpx.WithMaxJSONBody, per call
Binding orderJSON → form → query → header → pathPresent values from later sources override earlier ones
ValidationCall the target’s Validate() errorAutomatic only in httpx.Parse
Path cleaning, escaped matching, slash redirectsOffEnable with mux options
Automatic redirect status307rest.WithRedirectStatus
Error responsesDefaultErrorHandlerServer-error details are hidden by default

Configure the global codec and error mapper at startup. Finish route registration before serving. See ServeMux migration for path policies.

Package relationships

All six production packages depend only on Mino and the Go standard library:

rest         → rest/chain
rest/httpx   → core/jsonx, core/mapping, core/errorx
core/mapping → core/errorx

On this page