Files
lneto/arp/stringers.go
2025-02-18 18:48:55 -03:00

26 lines
662 B
Go

// Code generated by "stringer -type=Operation -linecomment -output stringers.go ."; DO NOT EDIT.
package arp
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[OpRequest-1]
_ = x[OpReply-2]
}
const _Operation_name = "requestreply"
var _Operation_index = [...]uint8{0, 7, 12}
func (i Operation) String() string {
i -= 1
if i >= Operation(len(_Operation_index)-1) {
return "Operation(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
}