MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / metaStringValue

Function metaStringValue

cmd/fetch_antigravity_models/main.go:291–305  ·  view source on GitHub ↗
(m map[string]interface{}, key string)

Source from the content-addressed store, hash-verified

289}
290
291func metaStringValue(m map[string]interface{}, key string) string {
292 if m == nil {
293 return ""
294 }
295 v, ok := m[key]
296 if !ok {
297 return ""
298 }
299 switch val := v.(type) {
300 case string:
301 return val
302 default:
303 return ""
304 }
305}

Callers 1

fetchModelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected