MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / Interface2String

Function Interface2String

common/utils.go:118–128  ·  view source on GitHub ↗
(inter interface{})

Source from the content-addressed store, hash-verified

116}
117
118func Interface2String(inter interface{}) string {
119 switch inter.(type) {
120 case string:
121 return inter.(string)
122 case int:
123 return fmt.Sprintf("%d", inter.(int))
124 case float64:
125 return fmt.Sprintf("%f", inter.(float64))
126 }
127 return "Not Implemented"
128}
129
130func UnescapeHTML(x string) interface{} {
131 return template.HTML(x)

Callers 5

GetOptionsFunction · 0.92
GetImageMediaMethod · 0.92
GetInputAudioMethod · 0.92
GetFileMethod · 0.92
GenRelayInfoResponsesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected