chore: fix inline comments in exported const blocks

They should not be inline, as this is not supported by godoc. This is
reported by revive 1.5.0.
This commit is contained in:
Vincent Bernat
2024-11-11 07:03:52 +01:00
parent 1adfb1bc3a
commit a6ce62dda0
2 changed files with 16 additions and 8 deletions

View File

@@ -82,10 +82,14 @@ func (v Version) MarshalText() ([]byte, error) {
type SASLMechanism int
const (
SASLNone SASLMechanism = iota // SASLNone means no user authentication
SASLPlainText // SASLPlainText means user/password in plain text
SASLSCRAMSHA256 // SASLSCRAMSHA256 enables SCRAM challenge with SHA256
SASLSCRAMSHA512 // SASLSCRAMSHA512 enables SCRAM challenge with SHA512
// SASLNone means no user authentication
SASLNone SASLMechanism = iota
// SASLPlainText means user/password in plain text
SASLPlainText
// SASLSCRAMSHA256 enables SCRAM challenge with SHA256
SASLSCRAMSHA256
// SASLSCRAMSHA512 enables SCRAM challenge with SHA512
SASLSCRAMSHA512
)
var saslAlgorithmMap = bimap.New(map[SASLMechanism]string{

View File

@@ -73,10 +73,14 @@ type IfSpeedPath struct {
type IfSpeedPathUnit int
const (
SpeedBits IfSpeedPathUnit = iota + 1 // SpeedBits means the speed is in bps
SpeedMegabits // SpeedMegabits means the speed is in Mbps
SpeedEthernet // SpeedEthernet means the speed is in OC ETHERNET_SPEED
SpeedHuman // SpeedHuman means the speed is human-formatted (10G)
// SpeedBits means the speed is in bps
SpeedBits IfSpeedPathUnit = iota + 1
// SpeedMegabits means the speed is in Mbps
SpeedMegabits
// SpeedEthernet means the speed is in OC ETHERNET_SPEED
SpeedEthernet
// SpeedHuman means the speed is human-formatted (10G)
SpeedHuman
)
var ifSpeedPathUnitMap = bimap.New(map[IfSpeedPathUnit]string{