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

Function firstPositive

internal/config/client.go:120–127  ·  view source on GitHub ↗
(values ...int)

Source from the content-addressed store, hash-verified

118}
119
120func firstPositive(values ...int) int {
121 for _, v := range values {
122 if v > 0 {
123 return v
124 }
125 }
126 return 0
127}
128
129func normalizeDeploymentID(v string) string {
130 v = strings.TrimSpace(v)

Callers 2

LoadServerFunction · 0.85
LoadClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected