Files
lneto/internet/pcap/stringers.go
T
2025-06-04 01:13:26 -03:00

36 lines
1.1 KiB
Go

// Code generated by "stringer -type=FieldClass -linecomment -output stringers.go ."; DO NOT EDIT.
package pcap
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[fieldClassUndefined-0]
_ = x[FieldClassSrc-1]
_ = x[FieldClassDst-2]
_ = x[FieldClassProto-3]
_ = x[FieldClassVersion-4]
_ = x[FieldClassType-5]
_ = x[FieldClassSize-6]
_ = x[FieldClassFlags-7]
_ = x[FieldClassID-8]
_ = x[FieldClassChecksum-9]
_ = x[FieldClassOptions-10]
_ = x[FieldClassPayload-11]
_ = x[FieldClassText-12]
}
const _FieldClass_name = "undefinedsourcedestinationprotocolversiontypefield sizeflagsidentificationchecksumoptionspayloadtext"
var _FieldClass_index = [...]uint8{0, 9, 15, 26, 34, 41, 45, 55, 60, 74, 82, 89, 96, 100}
func (i FieldClass) String() string {
if i >= FieldClass(len(_FieldClass_index)-1) {
return "FieldClass(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _FieldClass_name[_FieldClass_index[i]:_FieldClass_index[i+1]]
}