2022-01-29 13:29:09 +01:00
|
|
|
package main
|
|
|
|
|
2022-01-29 13:31:31 +01:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"git.purser.it/roypur/envconf"
|
|
|
|
)
|
2022-01-29 13:29:09 +01:00
|
|
|
|
|
|
|
func main() {
|
|
|
|
conf := envconf.NewConfig()
|
2022-01-29 21:51:28 +01:00
|
|
|
conf.Define("this_is_a_map", envconf.TypeInt)
|
2022-01-29 22:03:33 +01:00
|
|
|
conf.DefineMap("test_map", envconf.TypeInt)
|
2022-01-29 13:29:09 +01:00
|
|
|
conf.Parse()
|
|
|
|
conf.Status()
|
2022-09-23 20:22:24 +02:00
|
|
|
fmt.Println(conf.GetMapMapMapMapMapInt("test_map"))
|
2022-01-29 21:59:03 +01:00
|
|
|
fmt.Println(conf.GetInt("this_is_a_map"))
|
2022-01-29 13:29:09 +01:00
|
|
|
}
|