diff options
Diffstat (limited to 'vendor/github.com/go-ini/ini/README_ZH.md')
-rw-r--r-- | vendor/github.com/go-ini/ini/README_ZH.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/go-ini/ini/README_ZH.md b/vendor/github.com/go-ini/ini/README_ZH.md index 3b4fb66..163432d 100644 --- a/vendor/github.com/go-ini/ini/README_ZH.md +++ b/vendor/github.com/go-ini/ini/README_ZH.md | |||
@@ -99,6 +99,12 @@ cfg, err := LoadSources(LoadOptions{AllowBooleanKeys: true}, "my.cnf")) | |||
99 | 99 | ||
100 | 这些键的值永远为 `true`,且在保存到文件时也只会输出键名。 | 100 | 这些键的值永远为 `true`,且在保存到文件时也只会输出键名。 |
101 | 101 | ||
102 | 如果您想要通过程序来生成此类键,则可以使用 `NewBooleanKey`: | ||
103 | |||
104 | ```go | ||
105 | key, err := sec.NewBooleanKey("skip-host-cache") | ||
106 | ``` | ||
107 | |||
102 | #### 关于注释 | 108 | #### 关于注释 |
103 | 109 | ||
104 | 下述几种情况的内容将被视为注释: | 110 | 下述几种情况的内容将被视为注释: |