go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/feature_string.go (about)

     1  // Code generated by "stringer -type=Feature"; DO NOT EDIT.
     2  
     3  package cnquery
     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[MassQueries-1]
    12  	_ = x[PiperCode-2]
    13  	_ = x[BoolAssertions-3]
    14  	_ = x[K8sNodeDiscovery-4]
    15  	_ = x[MQLAssetContext-5]
    16  	_ = x[ErrorsAsFailures-6]
    17  }
    18  
    19  const _Feature_name = "MassQueriesPiperCodeBoolAssertionsK8sNodeDiscoveryMQLAssetContextErrorsAsFailures"
    20  
    21  var _Feature_index = [...]uint8{0, 11, 20, 34, 50, 65, 81}
    22  
    23  func (i Feature) String() string {
    24  	i -= 1
    25  	if i >= Feature(len(_Feature_index)-1) {
    26  		return "Feature(" + strconv.FormatInt(int64(i+1), 10) + ")"
    27  	}
    28  	return _Feature_name[_Feature_index[i]:_Feature_index[i+1]]
    29  }