Get finds the first value for key within a declaration that matches the alias. Get returns the empty string if no value was found, or if IgnoreErrors is false and we could not parse the configuration file. Use GetStrict to disambiguate the latter cases. The match for key is case insensitive.
(alias, key string)
| 177 | // |
| 178 | // The match for key is case insensitive. |
| 179 | func (u *UserSettings) Get(alias, key string) string { |
| 180 | val, err := u.GetStrict(alias, key) |
| 181 | if err != nil { |
| 182 | return "" |
| 183 | } |
| 184 | return val |
| 185 | } |
| 186 | |
| 187 | // GetAll retrieves zero or more directives for key for the given alias. GetAll |
| 188 | // returns nil if no value was found, or if IgnoreErrors is false and we could |