...

Source file src/go.opentelemetry.io/otel/attribute/type_string.go

Documentation: go.opentelemetry.io/otel/attribute

     1  // Code generated by "stringer -type=Type"; DO NOT EDIT.
     2  
     3  package attribute
     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[INVALID-0]
    12  	_ = x[BOOL-1]
    13  	_ = x[INT64-2]
    14  	_ = x[FLOAT64-3]
    15  	_ = x[STRING-4]
    16  	_ = x[BOOLSLICE-5]
    17  	_ = x[INT64SLICE-6]
    18  	_ = x[FLOAT64SLICE-7]
    19  	_ = x[STRINGSLICE-8]
    20  }
    21  
    22  const _Type_name = "INVALIDBOOLINT64FLOAT64STRINGBOOLSLICEINT64SLICEFLOAT64SLICESTRINGSLICE"
    23  
    24  var _Type_index = [...]uint8{0, 7, 11, 16, 23, 29, 38, 48, 60, 71}
    25  
    26  func (i Type) String() string {
    27  	if i < 0 || i >= Type(len(_Type_index)-1) {
    28  		return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
    29  	}
    30  	return _Type_name[_Type_index[i]:_Type_index[i+1]]
    31  }
    32  

View as plain text