1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00
Files
opentelemetry-go/attribute/type_string.go
T

33 lines
819 B
Go
Raw Normal View History

2020-05-14 07:06:03 +08:00
// Code generated by "stringer -type=Type"; DO NOT EDIT.
package attribute
2020-05-14 07:06:03 +08:00
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[INVALID-0]
_ = x[BOOL-1]
2021-02-17 03:23:58 +03:00
_ = x[INT64-2]
_ = x[FLOAT64-3]
_ = x[STRING-4]
_ = x[BOOLSLICE-5]
_ = x[INT64SLICE-6]
_ = x[FLOAT64SLICE-7]
_ = x[STRINGSLICE-8]
2020-05-14 07:06:03 +08:00
}
const _Type_name = "INVALIDBOOLINT64FLOAT64STRINGBOOLSLICEINT64SLICEFLOAT64SLICESTRINGSLICE"
2020-05-14 07:06:03 +08:00
var _Type_index = [...]uint8{0, 7, 11, 16, 23, 29, 38, 48, 60, 71}
2020-05-14 07:06:03 +08:00
func (i Type) String() string {
2025-10-20 09:09:34 -07:00
idx := int(i) - 0
if i < 0 || idx >= len(_Type_index)-1 {
2020-05-14 07:06:03 +08:00
return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
}
2025-10-20 09:09:34 -07:00
return _Type_name[_Type_index[idx]:_Type_index[idx+1]]
2020-05-14 07:06:03 +08:00
}