goini
goini copied to clipboard
Dots ini notation
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"
@fabriziogiordano I think you can refactor this one into this:
- a
productionini file -
ftpanddbsection inproductionini file - put
host,portanduserconfiguration key underftpsection and puthost,portanduserunderdbsection.
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. :)