Open kamilsk opened 2 years ago
Motivation: there is no generic way to work with "prefixed" embedded structures. It leads to code duplication and makes it dirty.
Scope:
improve Load functionality, make it generic https://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool.go#L25-L50
remove workaround with prefixes
solve tech debt with keys warming https://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool_test.go#L42-L50
find a way how to make squash with prefix work https://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool_test.go#L82-L120
squash with prefix
Related to mitchellh/mapstructure/issues/288.
Motivation: there is no generic way to work with "prefixed" embedded structures. It leads to code duplication and makes it dirty.
Scope:
improve Load functionality, make it generic https://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool.go#L25-L50
remove workaround with prefixes
solve tech debt with keys warming https://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool_test.go#L42-L50
find a way how to make
squash with prefix
work https://github.com/octomation/maintainer/blob/b2543194067c4e0b4daebd0b7def287762e5f4b7/internal/config/tool_test.go#L82-L120