mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Improve listing consistency with version merging (#13723)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by "stringer -type VersionType -output=xl-storage-format-v2_string.go xl-storage-format-v2.go"; DO NOT EDIT.
|
||||
// Code generated by "stringer -type VersionType,ErasureAlgo -output=xl-storage-format-v2_string.go xl-storage-format-v2.go"; DO NOT EDIT.
|
||||
|
||||
package cmd
|
||||
|
||||
@@ -25,3 +25,22 @@ func (i VersionType) String() string {
|
||||
}
|
||||
return _VersionType_name[_VersionType_index[i]:_VersionType_index[i+1]]
|
||||
}
|
||||
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[invalidErasureAlgo-0]
|
||||
_ = x[ReedSolomon-1]
|
||||
_ = x[lastErasureAlgo-2]
|
||||
}
|
||||
|
||||
const _ErasureAlgo_name = "invalidErasureAlgoReedSolomonlastErasureAlgo"
|
||||
|
||||
var _ErasureAlgo_index = [...]uint8{0, 18, 29, 44}
|
||||
|
||||
func (i ErasureAlgo) String() string {
|
||||
if i >= ErasureAlgo(len(_ErasureAlgo_index)-1) {
|
||||
return "ErasureAlgo(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _ErasureAlgo_name[_ErasureAlgo_index[i]:_ErasureAlgo_index[i+1]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user