diff options
Diffstat (limited to 'vendor/github.com/go-ini/ini/README.md')
-rw-r--r-- | vendor/github.com/go-ini/ini/README.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/go-ini/ini/README.md b/vendor/github.com/go-ini/ini/README.md index 22a4234..8594742 100644 --- a/vendor/github.com/go-ini/ini/README.md +++ b/vendor/github.com/go-ini/ini/README.md | |||
@@ -1,4 +1,4 @@ | |||
1 | INI [![Build Status](https://travis-ci.org/go-ini/ini.svg?branch=master)](https://travis-ci.org/go-ini/ini) | 1 | INI [![Build Status](https://travis-ci.org/go-ini/ini.svg?branch=master)](https://travis-ci.org/go-ini/ini) [![Sourcegraph](https://sourcegraph.com/github.com/go-ini/ini/-/badge.svg)](https://sourcegraph.com/github.com/go-ini/ini?badge) |
2 | === | 2 | === |
3 | 3 | ||
4 | ![](https://avatars0.githubusercontent.com/u/10216035?v=3&s=200) | 4 | ![](https://avatars0.githubusercontent.com/u/10216035?v=3&s=200) |
@@ -106,6 +106,12 @@ cfg, err := LoadSources(LoadOptions{AllowBooleanKeys: true}, "my.cnf")) | |||
106 | 106 | ||
107 | The value of those keys are always `true`, and when you save to a file, it will keep in the same foramt as you read. | 107 | The value of those keys are always `true`, and when you save to a file, it will keep in the same foramt as you read. |
108 | 108 | ||
109 | To generate such keys in your program, you could use `NewBooleanKey`: | ||
110 | |||
111 | ```go | ||
112 | key, err := sec.NewBooleanKey("skip-host-cache") | ||
113 | ``` | ||
114 | |||
109 | #### Comment | 115 | #### Comment |
110 | 116 | ||
111 | Take care that following format will be treated as comment: | 117 | Take care that following format will be treated as comment: |