github.com/quay/claircore@v1.5.28/rhel/dockerfile/itemkind_string.go (about)

     1  // Code generated by "stringer -type itemKind"; DO NOT EDIT.
     2  
     3  package dockerfile
     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[itemError-0]
    12  	_ = x[itemComment-1]
    13  	_ = x[itemInstruction-2]
    14  	_ = x[itemLabel-3]
    15  	_ = x[itemArg-4]
    16  	_ = x[itemEnv-5]
    17  	_ = x[itemEOF-6]
    18  }
    19  
    20  const _itemKind_name = "itemErroritemCommentitemInstructionitemLabelitemArgitemEnvitemEOF"
    21  
    22  var _itemKind_index = [...]uint8{0, 9, 20, 35, 44, 51, 58, 65}
    23  
    24  func (i itemKind) String() string {
    25  	if i < 0 || i >= itemKind(len(_itemKind_index)-1) {
    26  		return "itemKind(" + strconv.FormatInt(int64(i), 10) + ")"
    27  	}
    28  	return _itemKind_name[_itemKind_index[i]:_itemKind_index[i+1]]
    29  }