github.com/la5nta/wl2k-go@v0.11.8/transport/ardop/state_string.go (about) 1 // generated by stringer -type=State .; DO NOT EDIT 2 3 package ardop 4 5 import "fmt" 6 7 const _State_name = "UnknownOfflineDisconnectedISSIRSIdleFECSendFECReceive" 8 9 var _State_index = [...]uint8{0, 7, 14, 26, 29, 32, 36, 43, 53} 10 11 func (i State) String() string { 12 if i+1 >= State(len(_State_index)) { 13 return fmt.Sprintf("State(%d)", i) 14 } 15 return _State_name[_State_index[i]:_State_index[i+1]] 16 }