1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-09 19:30:18 +00:00
Commit Graph

17 Commits

Author SHA1 Message Date
889408136b fix typo 2018-03-28 00:26:06 +08:00
7e65338c87 Change key format
key format : ${ENV_PART||defaultValue} or  ${ENV_PART}
2016-03-29 21:47:33 +08:00
1b04571c0b test the env use GOPATH not GOROOT 2016-03-14 19:22:00 +08:00
b2a06c5fa0 Update config suport environment variable logic 2016-03-12 14:32:39 +08:00
cd31c816cc Config support get environment variable
get environment variable if config item  has prefix "$ENV_" .
e.g.
```ini
[demo]
password = $ENV_MyPWD
```
2016-01-27 20:46:30 +08:00
f8004b69ad fix the go vet 2016-01-25 21:33:57 +08:00
be544f963e Support Parse Bool with more diffrent values
ParseBool returns the boolean value represented by the string.
It accepts 1, 1.0, t, T, TRUE, true, True, YES, yes, Yes,Y, y, ON, on,
On,
 0, 0.0, f, F, FALSE, false, False, NO, no, No, N,n, OFF, off, Off.
Any other value returns an error.
2016-01-23 11:02:40 +08:00
572508ddd8 Clean json config. Fix DefaultStrings 2014-12-17 17:02:46 +08:00
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
3b934bb910 config: fix error when json config starts with an array 2014-06-11 11:33:32 +03:00
a673a85d4a added tests config/json_test that test missing key usecases. created a template function to fetch AppConfig values 2014-05-30 23:48:23 -05:00
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
3a0b2e3b95 beego config module json support get data like key:🔑:key 2013-12-10 18:09:58 +08:00
ac6108a87d add more json test info 2013-11-11 21:25:03 +08:00
87f8fb0750 finish config module support ini/json/xml/yaml 2013-08-22 00:07:33 +08:00