github.com/osrg/gobgp@v2.0.0+incompatible/internal/pkg/zebra/ptm_status_string.go (about) 1 // Code generated by "stringer -type=PTM_STATUS"; DO NOT EDIT. 2 3 package zebra 4 5 import "strconv" 6 7 const _PTM_STATUS_name = "PTM_STATUS_DOWNPTM_STATUS_UPPTM_STATUS_UNKNOWN" 8 9 var _PTM_STATUS_index = [...]uint8{0, 15, 28, 46} 10 11 func (i PTM_STATUS) String() string { 12 if i >= PTM_STATUS(len(_PTM_STATUS_index)-1) { 13 return "PTM_STATUS(" + strconv.FormatInt(int64(i), 10) + ")" 14 } 15 return _PTM_STATUS_name[_PTM_STATUS_index[i]:_PTM_STATUS_index[i+1]] 16 }