completeConfig returns the list of configurable names starting with prefix.
(prefix string)
| 282 | |
| 283 | // completeConfig returns the list of configurable names starting with prefix. |
| 284 | func completeConfig(prefix string) []string { |
| 285 | var result []string |
| 286 | for v := range configFieldMap { |
| 287 | if strings.HasPrefix(v, prefix) { |
| 288 | result = append(result, v) |
| 289 | } |
| 290 | } |
| 291 | return result |
| 292 | } |
| 293 | |
| 294 | // configure stores the name=value mapping into the current config, correctly |
| 295 | // handling the case when name identifies a particular choice in a field. |
no outgoing calls
no test coverage detected
searching dependent graphs…