generated from soypat/go-module-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
state_string.go
33 lines (27 loc) · 926 Bytes
/
state_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Code generated by "stringer -type=State -trimprefix=State"; DO NOT EDIT.
package seqs
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[StateClosed-0]
_ = x[StateListen-1]
_ = x[StateSynRcvd-2]
_ = x[StateSynSent-3]
_ = x[StateEstablished-4]
_ = x[StateFinWait1-5]
_ = x[StateFinWait2-6]
_ = x[StateClosing-7]
_ = x[StateTimeWait-8]
_ = x[StateCloseWait-9]
_ = x[StateLastAck-10]
}
const _State_name = "ClosedListenSynRcvdSynSentEstablishedFinWait1FinWait2ClosingTimeWaitCloseWaitLastAck"
var _State_index = [...]uint8{0, 6, 12, 19, 26, 37, 45, 53, 60, 68, 77, 84}
func (i State) String() string {
if i >= State(len(_State_index)-1) {
return "State(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _State_name[_State_index[i]:_State_index[i+1]]
}