github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/lang/runmode/runmode_string.go (about)

     1  // Code generated by "stringer -type=RunMode"; DO NOT EDIT.
     2  
     3  package runmode
     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[Default-0]
    12  	_ = x[Normal-1]
    13  	_ = x[BlockUnsafe-2]
    14  	_ = x[FunctionUnsafe-3]
    15  	_ = x[ModuleUnsafe-4]
    16  	_ = x[BlockTry-5]
    17  	_ = x[BlockTryPipe-6]
    18  	_ = x[BlockTryErr-7]
    19  	_ = x[BlockTryPipeErr-8]
    20  	_ = x[FunctionTry-9]
    21  	_ = x[FunctionTryPipe-10]
    22  	_ = x[FunctionTryErr-11]
    23  	_ = x[FunctionTryPipeErr-12]
    24  	_ = x[ModuleTry-13]
    25  	_ = x[ModuleTryPipe-14]
    26  	_ = x[ModuleTryErr-15]
    27  	_ = x[ModuleTryPipeErr-16]
    28  }
    29  
    30  const _RunMode_name = "DefaultNormalBlockUnsafeFunctionUnsafeModuleUnsafeBlockTryBlockTryPipeBlockTryErrBlockTryPipeErrFunctionTryFunctionTryPipeFunctionTryErrFunctionTryPipeErrModuleTryModuleTryPipeModuleTryErrModuleTryPipeErr"
    31  
    32  var _RunMode_index = [...]uint8{0, 7, 13, 24, 38, 50, 58, 70, 81, 96, 107, 122, 136, 154, 163, 176, 188, 204}
    33  
    34  func (i RunMode) String() string {
    35  	if i < 0 || i >= RunMode(len(_RunMode_index)-1) {
    36  		return "RunMode(" + strconv.FormatInt(int64(i), 10) + ")"
    37  	}
    38  	return _RunMode_name[_RunMode_index[i]:_RunMode_index[i+1]]
    39  }