mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
Go
41 lines
1.3 KiB
Go
// Code generated by "stringer -type state"; DO NOT EDIT.
|
|
|
|
package stack
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[normal-0]
|
|
_ = x[betweenRoutine-1]
|
|
_ = x[gotRoutineHeader-2]
|
|
_ = x[gotFunc-3]
|
|
_ = x[gotCreated-4]
|
|
_ = x[gotFileFunc-5]
|
|
_ = x[gotFileCreated-6]
|
|
_ = x[gotUnavail-7]
|
|
_ = x[gotRaceHeader1-8]
|
|
_ = x[gotRaceHeader2-9]
|
|
_ = x[gotRaceOperationHeader-10]
|
|
_ = x[gotRaceOperationFunc-11]
|
|
_ = x[gotRaceOperationFile-12]
|
|
_ = x[betweenRaceOperations-13]
|
|
_ = x[gotRaceGoroutineHeader-14]
|
|
_ = x[gotRaceGoroutineFunc-15]
|
|
_ = x[gotRaceGoroutineFile-16]
|
|
_ = x[betweenRaceGoroutines-17]
|
|
}
|
|
|
|
const _state_name = "normalbetweenRoutinegotRoutineHeadergotFuncgotCreatedgotFileFuncgotFileCreatedgotUnavailgotRaceHeader1gotRaceHeader2gotRaceOperationHeadergotRaceOperationFuncgotRaceOperationFilebetweenRaceOperationsgotRaceGoroutineHeadergotRaceGoroutineFuncgotRaceGoroutineFilebetweenRaceGoroutines"
|
|
|
|
var _state_index = [...]uint16{0, 6, 20, 36, 43, 53, 64, 78, 88, 102, 116, 138, 158, 178, 199, 221, 241, 261, 282}
|
|
|
|
func (i state) String() string {
|
|
if i < 0 || i >= state(len(_state_index)-1) {
|
|
return "state(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _state_name[_state_index[i]:_state_index[i+1]]
|
|
}
|