Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GongShichen/LuminaCode
/ stringValue
Function
stringValue
mcp/protocol.go:125–133 ·
view source on GitHub ↗
(v any)
Source
from the content-addressed store, hash-verified
123
}
124
125
func
stringValue(v any) string {
126
if
s, ok := v.(string); ok {
127
return
s
128
}
129
if
v == nil {
130
return
""
131
}
132
return
fmt.Sprint(v)
133
}
134
135
func
intValue(v any) int {
136
switch
n := v.(
type
) {
Callers
1
ParseMessage
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected