Giter Club home page Giter Club logo

go-ini's People

Contributors

ochinchina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zealass 826982262

go-ini's Issues

can't load .ini similar java .properties file

The .ini file and the java .properties file are similar.

In the .properties file, no section concept and we can regard that all the keys are defined in an implicit section like "global".

Hope this library can support java .properties file loading also.

value 含有 : = 时,获取出来前面多了个 '\'

原本是:

[mgo]
user = test
servers=127.0.0.1:27017/uri=admin?replicaSet=mgset-5574815

ini.Load() 后,在打印出来是:

[mgo]
user = test
servers=127.0.0.1\:27017/uri=admin?replicaSet\=mgset-5574815

另外,能不能提供一个获取k-v map的方法(类似这样):

cfg := ini.Load("some.ini")

mgo := cfg.Section("mgo").Map() // return map[string]string

not support environment variable in the value of key

There maybe environment variable in the value of a key, for example:

[section1]
key1=this is a environment variable ${VALUE:-test}

in the above example, the value of key "key1" contains a environment variable "VALUE" and it will be replaced with the environment "VALUE". If there is no environment variable "VALUE", its value will be replaced with the default value "test".

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.