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