Giter Site home page Giter Site logo

please-build / gcfg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from go-gcfg/gcfg

0.0 0.0 3.0 189 KB

read INI-style configuration files into Go structs; supports user-defined types and subsections

Home Page: https://gopkg.in/gcfg.v1

License: Other

Go 100.00%

gcfg's People

Contributors

akavel avatar peterebden avatar samwestmoreland avatar speter avatar tatskaari avatar tiagovtristao avatar wanglei-ok avatar

gcfg's Issues

Update documentation

This fork has deviated from the original repo. The documentation should reflect any changes.

Investigate some potential edge cases around the 'gcfg:"extra_values"' functionality.

Recent functionality was added around the gcfg:"extra_values" tag which allows extra fields set on the configuration file to be read and set, even if they aren't statically defined.

There a couple of things worth nothing with the gcfg:"extra_values" tag that are worth investigating:

  • The original library already supported the gcfg tag which allowed for the variable name in the configuration file to differ from the actual Go struct field. ie. "BuildFilename string gcfg:"anything"" would map the anything variable in the configuration file to the BuildFilename struct field. This means that gcfg:"extra_values" is also a valid variable rename case.
  • If a field is set as "MyField map[string]string gcfg:"extra_values"", what happens if there's a corresponding myfield variable set in the configuration file?

These are edge cases that I bumped into when working on separate tickets.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.