Directories
¶
| Path | Synopsis |
|---|---|
|
Command basic shows the minimum gostructor setup: env vars (named from each field via the cfg tag) with gos default fallbacks, using only the core module.
|
Command basic shows the minimum gostructor setup: env vars (named from each field via the cfg tag) with gos default fallbacks, using only the core module. |
|
Command errors tours gostructor's typed error taxonomy: it triggers each failure mode and classifies it with errors.Is / errors.As, so a caller can tell what went wrong and whose fault it is.
|
Command errors tours gostructor's typed error taxonomy: it triggers each failure mode and classifies it with errors.Is / errors.As, so a caller can tell what went wrong and whose fault it is. |
|
Command filesources shows the two core file sources, JSON and INI, used together on one struct with env and a gos default in the same priority chain.
|
Command filesources shows the two core file sources, JSON and INI, used together on one struct with env and a gos default in the same priority chain. |
|
Command hooks shows WithHook for two jobs: transforming a resolved value (normalise a string) and validating one (reject an out-of-range port), both operating on the already-converted, field-typed value.
|
Command hooks shows WithHook for two jobs: transforming a resolved value (normalise a string) and validating one (reject an out-of-range port), both operating on the already-converted, field-typed value. |
|
Command observability shows gostructor's focused resolution trace: a summary line, the primary source, the defaults count, and an Overrides & Secrets section listing only the fields that were overridden away from the primary config or that are secret (masked).
|
Command observability shows gostructor's focused resolution trace: a summary line, the primary source, the defaults count, and an Overrides & Secrets section listing only the fields that were overridden away from the primary config or that are secret (masked). |
|
Command priority shows how gostructor expresses priority: the SAME struct resolves DIFFERENTLY purely from the ORDER of sources passed to WithSources.
|
Command priority shows how gostructor expresses priority: the SAME struct resolves DIFFERENTLY purely from the ORDER of sources passed to WithSources. |
|
Command types shows the range of field types gostructor fills from a single structured source (a JSON file here): durations, slices and arrays, TextUnmarshaler types (time.Time, net.IP), named scalar types, pointers, maps, and slices/maps of structs, all with strict, lossless conversion.
|
Command types shows the range of field types gostructor fills from a single structured source (a JSON file here): durations, slices and arrays, TextUnmarshaler types (time.Time, net.IP), named scalar types, pointers, maps, and slices/maps of structs, all with strict, lossless conversion. |
|
Command webservice is a production-style microservice configuration assembled from three layers:
|
Command webservice is a production-style microservice configuration assembled from three layers: |
Click to show internal directories.
Click to hide internal directories.