revel???????????????
???????????? ???????[ 2015/5/7 10:58:59 ] ??????????????????
????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
?????л??????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11