MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / convertInt

Function convertInt

app/ai-event-handler/nsq.go:71–80  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

69}
70
71func convertInt(value interface{}) int {
72 switch v := value.(type) {
73 case int:
74 return v
75 case float64:
76 return int(v)
77 default:
78 return 0
79 }
80}
81
82func genAIKey(key string, provider string) string {
83 keys := strings.Split(key, "@")

Callers 1

HandleMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected