github.com/osrg/gobgp@v2.0.0+incompatible/pkg/packet/bgp/fsmstate_string.go (about) 1 // generated by stringer -type=FSMState -output=fsmstate_string.go bgp.go validate.go mrt.go rtr.go constant.go bmp.go esitype_string.go bgpattrtype_string.go; DO NOT EDIT 2 3 package bgp 4 5 import "fmt" 6 7 const _FSMState_name = "BGP_FSM_IDLEBGP_FSM_CONNECTBGP_FSM_ACTIVEBGP_FSM_OPENSENTBGP_FSM_OPENCONFIRMBGP_FSM_ESTABLISHED" 8 9 var _FSMState_index = [...]uint8{0, 12, 27, 41, 57, 76, 95} 10 11 func (i FSMState) String() string { 12 if i < 0 || i >= FSMState(len(_FSMState_index)-1) { 13 return fmt.Sprintf("FSMState(%d)", i) 14 } 15 return _FSMState_name[_FSMState_index[i]:_FSMState_index[i+1]] 16 }