MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / firstNonEmptyString

Function firstNonEmptyString

mcp/protocol.go:163–168  ·  view source on GitHub ↗
(value, fallback string)

Source from the content-addressed store, hash-verified

161}
162
163func firstNonEmptyString(value, fallback string) string {
164 if value != "" {
165 return value
166 }
167 return fallback
168}
169
170type jsonPair struct {
171 Key string

Callers 1

SerializeMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected