File: type_string.go

package info (click to toggle)
golang-github-performancecopilot-speed 4.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 508 kB
  • sloc: makefile: 38
file content (27 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Code generated by "stringer --type=Type"; DO NOT EDIT

package mmvdump

import "fmt"

const (
	_Type_name_0 = "NoSupportTypeInt32TypeUint32TypeInt64TypeUint64TypeFloatTypeDoubleTypeStringType"
	_Type_name_1 = "UnknownType"
)

var (
	_Type_index_0 = [...]uint8{0, 13, 22, 32, 41, 51, 60, 70, 80}
	_Type_index_1 = [...]uint8{0, 11}
)

func (i Type) String() string {
	switch {
	case -1 <= i && i <= 6:
		i -= -1
		return _Type_name_0[_Type_index_0[i]:_Type_index_0[i+1]]
	case i == 255:
		return _Type_name_1
	default:
		return fmt.Sprintf("Type(%d)", i)
	}
}