[#877] neofs-node/config: allow to provide default values

In case we have multiple sections with similar structure (e.g. shards)
having defaults in a single place is easier to work with.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-18 16:36:56 +03:00 committed by Alex Vanin
parent 118c3b3cfe
commit cb9bf00ceb
5 changed files with 78 additions and 4 deletions

View file

@ -17,7 +17,8 @@ import (
type Config struct {
v *viper.Viper
path []string
defaultPath []string
path []string
}
const separator = "."