github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/core/transaction/witnessaction_string.go (about)

     1  // Code generated by "stringer -type=WitnessAction -linecomment"; DO NOT EDIT.
     2  
     3  package transaction
     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[WitnessDeny-0]
    12  	_ = x[WitnessAllow-1]
    13  }
    14  
    15  const _WitnessAction_name = "DenyAllow"
    16  
    17  var _WitnessAction_index = [...]uint8{0, 4, 9}
    18  
    19  func (i WitnessAction) String() string {
    20  	if i >= WitnessAction(len(_WitnessAction_index)-1) {
    21  		return "WitnessAction(" + strconv.FormatInt(int64(i), 10) + ")"
    22  	}
    23  	return _WitnessAction_name[_WitnessAction_index[i]:_WitnessAction_index[i+1]]
    24  }