()
| 115 | } |
| 116 | |
| 117 | func (this *config) list() string { |
| 118 | str, typ := this.value_and_type() |
| 119 | buf := bytes.NewBuffer(make([]byte, 0, 256)) |
| 120 | for i := 0; i < str.NumField(); i++ { |
| 121 | v := str.Field(i) |
| 122 | name := typ.Field(i).Tag.Get("json") |
| 123 | list_value(v, name, buf) |
| 124 | } |
| 125 | return buf.String() |
| 126 | } |
| 127 | |
| 128 | func (this *config) list_option(name string) string { |
| 129 | str, typ := this.value_and_type() |
no test coverage detected