mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 08:23:50 +01:00
77d3a1ad4d
bump enumer to v1.1.1 bump golangci-lint to v1.17.1 no `go mod tidy` because 1.13 and 1.12 seem to alter each other's output fixes #112
40 lines
851 B
Go
40 lines
851 B
Go
// Code generated by "stringer -type=SnapState"; DO NOT EDIT.
|
|
|
|
package snapper
|
|
|
|
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[SnapPending-1]
|
|
_ = x[SnapStarted-2]
|
|
_ = x[SnapDone-4]
|
|
_ = x[SnapError-8]
|
|
}
|
|
|
|
const (
|
|
_SnapState_name_0 = "SnapPendingSnapStarted"
|
|
_SnapState_name_1 = "SnapDone"
|
|
_SnapState_name_2 = "SnapError"
|
|
)
|
|
|
|
var (
|
|
_SnapState_index_0 = [...]uint8{0, 11, 22}
|
|
)
|
|
|
|
func (i SnapState) String() string {
|
|
switch {
|
|
case 1 <= i && i <= 2:
|
|
i -= 1
|
|
return _SnapState_name_0[_SnapState_index_0[i]:_SnapState_index_0[i+1]]
|
|
case i == 4:
|
|
return _SnapState_name_1
|
|
case i == 8:
|
|
return _SnapState_name_2
|
|
default:
|
|
return "SnapState(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|