glacjay / goini

INI file parser in go.
MIT License
37 stars 20 forks source link

Dots ini notation #6

Open fabriziogiordano opened 10 years ago

fabriziogiordano commented 10 years ago

Is it possible to add a dots ini notation? An example is easier to explain:

[Production]
ftp.host = "http://...."
ftp.port = 21
ftp.user = "mario"
db.host  = "mysql://...."
db.port  = 3660
db.user  = "mario"
andyxning commented 8 years ago

@fabriziogiordano I think you can refactor this one into this:

production.ini

[ftp]
host = "http://...."
port = 21
user = "mario"

[db]
host = "mysql://...."
port = 3660
user = "mario"

This will make your configuration more clear and more feasible. :)