github.com/braveheart12/just@v0.8.7/core/delegationtokentype_string.go (about) 1 // Code generated by "stringer -type=DelegationTokenType"; DO NOT EDIT. 2 3 package core 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[DTTypePendingExecution-1] 12 _ = x[DTTypeGetObjectRedirect-2] 13 _ = x[DTTypeGetChildrenRedirect-3] 14 _ = x[DTTypeGetCodeRedirect-4] 15 } 16 17 const _DelegationTokenType_name = "DTTypePendingExecutionDTTypeGetObjectRedirectDTTypeGetChildrenRedirectDTTypeGetCodeRedirect" 18 19 var _DelegationTokenType_index = [...]uint8{0, 22, 45, 70, 91} 20 21 func (i DelegationTokenType) String() string { 22 i -= 1 23 if i >= DelegationTokenType(len(_DelegationTokenType_index)-1) { 24 return "DelegationTokenType(" + strconv.FormatInt(int64(i+1), 10) + ")" 25 } 26 return _DelegationTokenType_name[_DelegationTokenType_index[i]:_DelegationTokenType_index[i+1]] 27 }