(name string)
| 126 | } |
| 127 | |
| 128 | func (this *config) list_option(name string) string { |
| 129 | str, typ := this.value_and_type() |
| 130 | buf := bytes.NewBuffer(make([]byte, 0, 256)) |
| 131 | for i := 0; i < str.NumField(); i++ { |
| 132 | v := str.Field(i) |
| 133 | nm := typ.Field(i).Tag.Get("json") |
| 134 | if nm == name { |
| 135 | list_value(v, name, buf) |
| 136 | } |
| 137 | } |
| 138 | return buf.String() |
| 139 | } |
| 140 | |
| 141 | func (this *config) set_option(name, value string) string { |
| 142 | str, typ := this.value_and_type() |
no test coverage detected