examples

command
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 5 Imported by: 0

README

Examples

  • simple: Showcases the basic features of go-conf.
  • multilevel: Showcases how to structure bigger configurations with multiple levels.
  • mapfun: Showcases how to implement and register a custom function for mapping a config parameter to a struct field.
  • primitive: Showcases some of the supported primitive types.
  • custom: Showcases some how to register custom config entries and then manually fill the config struct.
  • multisource: Showcases reading of config parameters from multiple sources like file, defaults, environment variables and command line arguments.
  • external: Showcases how external non primitive types (types that can't be annotated) can be used for configuration.
  • required: Showcases that parameters without having a default value are treated as required.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL