MCPcopy Create free account
hub / github.com/nsf/gocode / list_option

Method list_option

config.go:128–139  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

126}
127
128func (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
141func (this *config) set_option(name, value string) string {
142 str, typ := this.value_and_type()

Callers 1

server_setFunction · 0.80

Calls 3

value_and_typeMethod · 0.95
list_valueFunction · 0.85
StringMethod · 0.80

Tested by

no test coverage detected