terraform-provider-gitea/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/severity_string.go
Tobias Trabelsi e1266ebf64
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build encountered an error
updated GHA
Update to v2 SDK
updated dependencies
2022-08-06 16:21:18 +02:00

30 lines
588 B
Go

// Code generated by "stringer -type=Severity"; DO NOT EDIT.
package tfdiags
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[Error-69]
_ = x[Warning-87]
}
const (
_Severity_name_0 = "Error"
_Severity_name_1 = "Warning"
)
func (i Severity) String() string {
switch {
case i == 69:
return _Severity_name_0
case i == 87:
return _Severity_name_1
default:
return "Severity(" + strconv.FormatInt(int64(i), 10) + ")"
}
}