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
production
ini file -
ftp
anddb
section inproduction
ini file - put
host
,port
anduser
configuration key underftp
section and puthost
,port
anduser
underdb
section.
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. :)