Upgrade golangci-lint, more linters

Introduces new linters, upgrade golangci-lint to version (v1.63.4)
This commit is contained in:
Joe Turki
2025-01-02 06:04:12 -06:00
parent 99dcc6b7bf
commit feeeebf251
147 changed files with 3842 additions and 2139 deletions

View File

@@ -18,11 +18,11 @@ func supportedNetworkTypes() []NetworkType {
}
}
// NetworkType represents the type of network
// NetworkType represents the type of network.
type NetworkType int
const (
// NetworkTypeUnknown is the enum's zero-value
// NetworkTypeUnknown is the enum's zero-value.
NetworkTypeUnknown NetworkType = iota
// NetworkTypeUDP4 indicates UDP over IPv4.
@@ -61,7 +61,7 @@ func (t NetworkType) String() string {
}
}
// Protocol returns udp or tcp
// Protocol returns udp or tcp.
func (t NetworkType) Protocol() string {
switch t {
case NetworkTypeUDP4: