Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
examplecov
Package examplecov analyzes a Go package's exported API surface and reports which units lack an associated Example function, so full example coverage is mechanically enforced rather than trusting whatever examples happen to exist.
|
Package examplecov analyzes a Go package's exported API surface and reports which units lack an associated Example function, so full example coverage is mechanically enforced rather than trusting whatever examples happen to exist. |
|
lib
|
|
|
config
Package config loads, merges, validates, and decodes Diene service configuration.
|
Package config loads, merges, validates, and decodes Diene service configuration. |
|
config/internal/clone
Package clone deep-clones the string-keyed configuration domain so a caller cannot mutate a value it handed across a public ownership boundary.
|
Package clone deep-clones the string-keyed configuration domain so a caller cannot mutate a value it handed across a public ownership boundary. |
|
config/internal/collision
Package collision detects sibling configuration keys whose canonical (separator- and case-insensitive) forms collide, within a single tree and recursively through nested objects and arrays of objects.
|
Package collision detects sibling configuration keys whose canonical (separator- and case-insensitive) forms collide, within a single tree and recursively through nested objects and arrays of objects. |
|
config/internal/layers
Package layers builds and resolves the YAML configuration layers: it parses documents with two Viper instances, folds the overlay onto the base with MergeConfigMap after aligning cross-spelled keys canonically, resolves and validates the landscape token, and safely resolves a file-mode overlay path.
|
Package layers builds and resolves the YAML configuration layers: it parses documents with two Viper instances, folds the overlay onto the base with MergeConfigMap after aligning cross-spelled keys canonically, resolves and validates the landscape token, and safely resolves a file-mode overlay path. |
|
config/internal/nilguard
Package nilguard reports whether an interface value is nil or a typed nil (an interface wrapping a nil pointer, map, slice, func, or channel), so a public API can reject a missing dependency with a deterministic error instead of panicking on it.
|
Package nilguard reports whether an interface value is nil or a typed nil (an interface wrapping a nil pointer, map, slice, func, or channel), so a public API can reject a missing dependency with a deterministic error instead of panicking on it. |
|
config/internal/resource
Package resource derives the schema resource identifier a composed configuration block is mounted under.
|
Package resource derives the schema resource identifier a composed configuration block is mounted under. |
|
config/internal/schemaview
Package schemaview turns an authored draft-2020-12 configuration schema into the form the validator actually evaluates, so that one equivalence relation governs both sides of validation.
|
Package schemaview turns an authored draft-2020-12 configuration schema into the form the validator actually evaluates, so that one equivalence relation governs both sides of validation. |
|
config/internal/tree
Package tree resolves dotted configuration keys against a merged map using the family's canonical, casing-insensitive key matching.
|
Package tree resolves dotted configuration keys against a merged map using the family's canonical, casing-insensitive key matching. |
|
config/internal/valid
Package valid compiles a composed JSON Schema, normalizes a configuration instance, validates it, and renders failures as problem-typed errors.
|
Package valid compiles a composed JSON Schema, normalizes a configuration instance, validates it, and renders failures as problem-typed errors. |
|
scripts
|
|
|
validate
command
Command examples_coverage fails when any exported symbol of a target package lacks an associated Example function, so full-public-surface example coverage is mechanically enforced rather than trusting that whatever examples exist compile.
|
Command examples_coverage fails when any exported symbol of a target package lacks an associated Example function, so full-public-surface example coverage is mechanically enforced rather than trusting that whatever examples exist compile. |
|
Package testhelper ships the fake configuration sources, schema and overlay fixtures, pre-validated stub builders, and fail-fast assertions that consumers of github.com/AtomiCloud/diene.go-config would otherwise repeat in every test.
|
Package testhelper ships the fake configuration sources, schema and overlay fixtures, pre-validated stub builders, and fail-fast assertions that consumers of github.com/AtomiCloud/diene.go-config would otherwise repeat in every test. |
Click to show internal directories.
Click to hide internal directories.