MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / firstNonEmpty

Function firstNonEmpty

internal/config/client.go:110–118  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

108}
109
110func firstNonEmpty(values ...string) string {
111 for _, v := range values {
112 v = strings.TrimSpace(v)
113 if v != "" {
114 return v
115 }
116 }
117 return ""
118}
119
120func firstPositive(values ...int) int {
121 for _, v := range values {

Callers 2

LoadServerFunction · 0.85
LoadClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected