-
Notifications
You must be signed in to change notification settings - Fork 7
/
kind.go
54 lines (45 loc) · 703 Bytes
/
kind.go
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package gotype
//go:generate stringer -type Kind kind.go
// Kind represents the specific kind of type that a Type represents.
// The zero Kind is not a valid kind.
type Kind uint8
// Define kind
const (
Invalid Kind = iota
// Built-in base type
predeclaredTypesBeg
Bool
Int
Int8
Int16
Int32
Int64
Uint
Uint8
Uint16
Uint32
Uint64
Uintptr
Float32
Float64
Complex64
Complex128
String
Byte
Rune
Error
predeclaredTypesEnd
// Built-in combination
Array
Chan
Func
Interface
Map
Ptr
Slice
Struct
// Special is different from other Kinds
Field // a Struct Field
Scope // package or func body
Declaration // a top-level function, variable, or constant.
)