Categorygithub.com/byte4ever/dsco
modulepackage
1.2.0-beta
Repository: https://github.com/byte4ever/dsco.git
Documentation: pkg.go.dev

# README

dsco (pronounce /ˈdɪskoʊ/. Yes! as 70's music)

GitHub Workflow Status Go Reference Go Version Go Report Card

Maintainability Test Coverage codecov BCH compliance

Scc Count Badge

An easy go configuration helper with powerful features.

WIP! Not ready now!

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CmdLine builds a command line manager.
Env builds a env manager.
Fill fills the structure using the layers.
NewStringBasedBuilder creates a bases builder for the provided path/text value set.
NewStructBuilder creates a new structure layer builder.
R returns a reference to any value thanks to generics in go1.18.
WithAliases returns a keys aliasing option.
WithCmdlineLayer creates a command line layer.
WithEnvLayer creates an environment variable layer.
WithStrictCmdlineLayer creates a strict command line layer.
WithStrictEnvLayer creates a new strict environment layer.
No description provided by the author
WithStrictStructLayer creates a new strict structure layer.
No description provided by the author
WithStructLayer creates a structure layer.

# Variables

ErrAliasCollision represents an error indicating that an alias is colliding with an actual key in the structure.
ErrCmdlineAlreadyUsed represent an error where ....
ErrDuplicateEnvPrefix represent an error where ....
ErrDuplicateInputStruct represent an error where ....
ErrDuplicateStructID represent an error where ....
No description provided by the author
No description provided by the author
ErrCmdlineAlreadyUsed represent an error where ....
ErrInvalidType represent an error where ....
No description provided by the author
ErrNilInput is dummy...
ErrNilProvider is shitty...
ErrNoAliasesProvided represent an error where no aliases map was provided with option.
ErrOverriddenKey represents an error indicating that a potential key binding wha overridden in another layer.
ErrParse represents an error indicating that a value cannot be parsed.
ErrStructTypeDiffer represent an error where cannot produce a valid value bases because struct source type and struct type to fillHelper differs.
ErrUnboundedLocation represents an error indicating that a key is never bound to the structure.

# Structs

No description provided by the author
No description provided by the author
CmdlineLayer is a command line layer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EnvLayer is an environnement variable layer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StrictCmdlineLayer is a strict command line layer.
StrictEnvLayer is a strict environnement variables layer.
No description provided by the author
StrictStructLayer is a strict structure layer.
StringBasedBuilder is a value bases builder depending on text values.
No description provided by the author
StructBuilder is a structure layer builder.
StructLayer is a structure layer.
No description provided by the author

# Interfaces

FieldValuesGetter defines the ability to get a path/value set (bases).
Layer defines a configuration layer.
No description provided by the author
No description provided by the author
Option is processing option for string based binder.
No description provided by the author
StringValuesProvider defines the behaviour if a string value provider.

# Type aliases

AliasesOption defines keys aliasing.
No description provided by the author
No description provided by the author