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

Function quoted

config.go:202–213  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

200}
201
202func quoted(v interface{}) string {
203 switch v.(type) {
204 case string:
205 return fmt.Sprintf("%q", v)
206 case int:
207 return fmt.Sprint(v)
208 case bool:
209 return fmt.Sprint(v)
210 default:
211 panic("unreachable")
212 }
213}
214
215var descRE = regexp.MustCompile(`{[^}]+}`)
216

Callers 1

optionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected