github.com/osrg/gobgp/v3@v3.30.0/pkg/packet/bgp/fsmstate_string.go (about) 1 // Code generated by "stringer -type=FSMState"; DO NOT EDIT. 2 3 package bgp 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[BGP_FSM_IDLE-0] 12 _ = x[BGP_FSM_CONNECT-1] 13 _ = x[BGP_FSM_ACTIVE-2] 14 _ = x[BGP_FSM_OPENSENT-3] 15 _ = x[BGP_FSM_OPENCONFIRM-4] 16 _ = x[BGP_FSM_ESTABLISHED-5] 17 } 18 19 const _FSMState_name = "BGP_FSM_IDLEBGP_FSM_CONNECTBGP_FSM_ACTIVEBGP_FSM_OPENSENTBGP_FSM_OPENCONFIRMBGP_FSM_ESTABLISHED" 20 21 var _FSMState_index = [...]uint8{0, 12, 27, 41, 57, 76, 95} 22 23 func (i FSMState) String() string { 24 if i < 0 || i >= FSMState(len(_FSMState_index)-1) { 25 return "FSMState(" + strconv.FormatInt(int64(i), 10) + ")" 26 } 27 return _FSMState_name[_FSMState_index[i]:_FSMState_index[i+1]] 28 }