mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 03:36:52 +01:00
apply go fix for Go 1.26 (#1867)
* apply `go fix` for Go 1.26 This applies the `go fix` recommendations for go1.26 * for all of ./...
This commit is contained in:
1 parent
89178f45ba
commit
0dc8a28d1f
76 files changed
+80
-161
No files matched your search
+5
-4
@@ -3,6 +3,7 @@ package routing
|
||||
import (
|
||||
"fmt"
|
||||
"net/netip"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -13,14 +14,14 @@ const (
|
||||
type Gateways []Gateway
|
||||
|
||||
func (g Gateways) String() string {
|
||||
str := ""
|
||||
var str strings.Builder
|
||||
for i, gw := range g {
|
||||
str += gw.String()
|
||||
str.WriteString(gw.String())
|
||||
if i < len(g)-1 {
|
||||
str += ", "
|
||||
str.WriteString(", ")
|
||||
}
|
||||
}
|
||||
return str
|
||||
return str.String()
|
||||
}
|
||||
|
||||
type Gateway struct {
|
||||
|
||||
Reference in new issue
Block a user