Skip to content
/ ezconf Public
forked from chrisftw/ezconf

Golang Easy Configuration File Reading

Notifications You must be signed in to change notification settings

rvuzov/ezconf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

#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.

Installation

    go get github.com/rvuzov/ezconf

Usage

  1. 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
    
  2. use your settings

     Lastname := ezconf.Get("last-name")
    
  3. add more settings with code

     port := ezconf.Set("nick-name", "Junior")
    
  4. start the application go run MyApp dev

About

Golang Easy Configuration File Reading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%