/goconf

:rocket: [WIP] Generate config code from configuration file.

genconf

Genconf is a tool to generate config code from configuration file.


Don't repeat yourself, every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
Install

Requirements:

  1. Golang

Install:

  1. Download latest code with go get
    go get -u go.zoe.im/genconf
  2. Install genconf with go install
    go install go.zoe.im/genconf
  3. Make sure you have install genconf success
    genconf version
Usage

Steps:

  1. Write your configuration with extend name we supported
    1. json: JSON file.
    2. yaml, yml: YAML file. 🎉 RECOMMAND
    3. toml: TOML file. 🎉 RECOMMAND
  2. Generate code with command
    genconf

Examples: