gurkankaymak / hocon

go implementation of lightbend's HOCON configuration library https://github.com/lightbend/config
MIT License
79 stars 17 forks source link

Enhancement: Add a way to get the root configuration. #5

Closed eric-poitras closed 3 years ago

eric-poitras commented 3 years ago

I need a way to get the root value of a config so I can export all the configuration values in another format.

I propose something that would look like:

config, _ := ParseResource(...)
root := config.GetRoot().(Object)
for k, v := range root {

}

I will link a MR that do this. Thanks!

gurkankaymak commented 3 years ago

thanks for the contribution