mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
05caff2ca3
This is part of a general effort to move all of Terraform's non-library package surface under internal in order to reinforce that these are for internal use within Terraform only. If you were previously importing packages under this prefix into an external codebase, you could pin to an earlier release tag as an interim solution until you've make a plan to achieve the same functionality some other way.
30 lines
588 B
Go
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) + ")"
|
|
}
|
|
}
|