????revel?е????ù????????https://github.com/robfig/config ?????e?????????.ini?????Щ????????????????????????????????á??????????????
[DEFAULT]
host: www.example.com
protocol: http://
base-url: %(protocol)s%(host)s
[service-1]
url: %(base-url)s/some/path
delegation: on
maxclients: 200 # do not set this higher
comments: This is a multi-line
entry   # And this is a comment
???????????????????????%( )s???????????????????????????岻??????
?????????????????????
c?? _ := config.ReadDefault("config.cfg")
c.String("service-1"?? "url")
// result is string "http://www.example.com/some/path"
c.Int("service-1"?? "maxclients")
// result is int 200
c.Bool("service-1"?? "delegation")
// result is bool true
c.String("service-1"?? "comments")
??????revel?У????????????????????????????????????????
????[dev]
????mode.dev = true
????watch = true
????[prod]
????mode.dev = false
????watch = false
?????л??????????????????????????????????????