github.com/blueinnovationsgroup/can-go@v0.0.0-20230518195432-d0567cda0028/pkg/descriptor/sendtype_string.go (about)

     1  // Code generated by "stringer -type SendType -trimprefix SendType"; DO NOT EDIT.
     2  
     3  package descriptor
     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[SendTypeNone-0]
    12  	_ = x[SendTypeCyclic-1]
    13  	_ = x[SendTypeEvent-2]
    14  }
    15  
    16  const _SendType_name = "NoneCyclicEvent"
    17  
    18  var _SendType_index = [...]uint8{0, 4, 10, 15}
    19  
    20  func (i SendType) String() string {
    21  	if i >= SendType(len(_SendType_index)-1) {
    22  		return "SendType(" + strconv.FormatInt(int64(i), 10) + ")"
    23  	}
    24  	return _SendType_name[_SendType_index[i]:_SendType_index[i+1]]
    25  }