#ezconf
====
I did not like any of the configuration options with Go. Creating a struct with every possible value I might want to ready it out of a JSON or yaml file? really?
I made one I think is more dynamic, while at the same time simple to use.
go get github.com/rvuzov/ezconf
-
Make your conf file in the config directory.
# This is a comment # file named "dev.conf" of prod.conf ("dev" is default) key : value first-name : Baron middle-name : Von last-name : Awesomesauce
-
use your settings
Lastname := ezconf.Get("last-name")
-
add more settings with code
port := ezconf.Set("nick-name", "Junior")
-
start the application go run MyApp dev