github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/format/difflanguage_string.go (about)

     1  // Code generated by "stringer -type=DiffLanguage diff.go"; DO NOT EDIT.
     2  
     3  package format
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[DiffLanguageProposedChange-80]
    12  	_ = x[DiffLanguageDetectedDrift-68]
    13  }
    14  
    15  const (
    16  	_DiffLanguage_name_0 = "DiffLanguageDetectedDrift"
    17  	_DiffLanguage_name_1 = "DiffLanguageProposedChange"
    18  )
    19  
    20  func (i DiffLanguage) String() string {
    21  	switch {
    22  	case i == 68:
    23  		return _DiffLanguage_name_0
    24  	case i == 80:
    25  		return _DiffLanguage_name_1
    26  	default:
    27  		return "DiffLanguage(" + strconv.FormatInt(int64(i), 10) + ")"
    28  	}
    29  }