Categorygithub.com/axkit/gonfig
repositorypackage
0.0.1
Repository: https://github.com/axkit/gonfig.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

gonfig GoDoc Build Status Coverage Status Go Report Card

Configuration for Go Application Changing in Runtime

Motivation

There are parameters types:

  • Static program execution parameters requires application restart to apply new values.
  • Dynamic program execution parameters does not require application restart, but getting values requires syncronization.
  • User settings are the same as Dynamic

A parameter can be declared in several places and simultaneously:

  • hardcoded default values (1)
  • config file (2)
  • environment variable (3)
  • command line (4)

Values of parameters captured on higher step overwrites previous values.