File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
package gotype
2
2
3
3
//go:generate stringer -type builtinfunc builtinfunc.go
4
+
4
5
type builtinfunc uint8
5
6
6
7
// Built-in function results
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package gotype
5
5
// ChanDir represents a channel type's direction.
6
6
type ChanDir int
7
7
8
+ // Define channel direction
8
9
const (
9
10
RecvDir ChanDir = 1 << iota // chan<-
10
11
SendDir // <-chan
Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ package gotype
6
6
// The zero Kind is not a valid kind.
7
7
type Kind uint8
8
8
9
+ // Define kind
9
10
const (
10
11
Invalid Kind = iota
11
12
12
13
// Built-in base type
14
+
13
15
predeclaredTypesBeg
14
16
Bool
15
17
Int
@@ -34,6 +36,7 @@ const (
34
36
predeclaredTypesEnd
35
37
36
38
// Built-in combination
39
+
37
40
Array
38
41
Chan
39
42
Func
@@ -44,6 +47,7 @@ const (
44
47
Struct
45
48
46
49
// Special is different from other Kinds
50
+
47
51
Field // a Struct Field
48
52
Scope // package or func body
49
53
Declaration // a top-level function, variable, or constant.
You can’t perform that action at this time.
0 commit comments