mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
NEW FEATURE: diff2: A better "diff" mechanism (#1852)
This commit is contained in:
26
pkg/diff2/verb_string.go
Normal file
26
pkg/diff2/verb_string.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Code generated by "stringer -type=Verb"; DO NOT EDIT.
|
||||
|
||||
package diff2
|
||||
|
||||
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[CREATE-1]
|
||||
_ = x[CHANGE-2]
|
||||
_ = x[DELETE-3]
|
||||
}
|
||||
|
||||
const _Verb_name = "CREATECHANGEDELETE"
|
||||
|
||||
var _Verb_index = [...]uint8{0, 6, 12, 18}
|
||||
|
||||
func (i Verb) String() string {
|
||||
i -= 1
|
||||
if i < 0 || i >= Verb(len(_Verb_index)-1) {
|
||||
return "Verb(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
||||
}
|
||||
return _Verb_name[_Verb_index[i]:_Verb_index[i+1]]
|
||||
}
|
Reference in New Issue
Block a user