mirror of
https://github.com/soypat/lneto.git
synced 2026-08-22 15:39:06 +00:00
upload changes done on plane
This commit is contained in:
+19
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by "stringer -type=IPProto -linecomment -output stringers.go ."; DO NOT EDIT.
|
||||
// Code generated by "stringer -type=IPProto,errGeneric -linecomment -output stringers.go ."; DO NOT EDIT.
|
||||
|
||||
package lneto
|
||||
|
||||
@@ -190,3 +190,21 @@ func (i IPProto) String() string {
|
||||
return "IPProto(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
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[ErrPacketDrop-1]
|
||||
}
|
||||
|
||||
const _errGeneric_name = "packet dropped"
|
||||
|
||||
var _errGeneric_index = [...]uint8{0, 14}
|
||||
|
||||
func (i errGeneric) String() string {
|
||||
i -= 1
|
||||
if i >= errGeneric(len(_errGeneric_index)-1) {
|
||||
return "errGeneric(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
||||
}
|
||||
return _errGeneric_name[_errGeneric_index[i]:_errGeneric_index[i+1]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user