forked from mna/pigeon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reserved_words.go
76 lines (74 loc) · 1.62 KB
/
reserved_words.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package main
var reservedWords = map[string]bool{
// Go keywords http://golang.org/ref/spec#Keywords
"break": true,
"case": true,
"chan": true,
"const": true,
"continue": true,
"default": true,
"defer": true,
"else": true,
"fallthrough": true,
"for": true,
"func": true,
"goto": true,
"go": true,
"if": true,
"import": true,
"interface": true,
"map": true,
"package": true,
"range": true,
"return": true,
"select": true,
"struct": true,
"switch": true,
"type": true,
"var": true,
// predeclared identifiers http://golang.org/ref/spec#Predeclared_identifiers
"any": true,
"bool": true,
"byte": true,
"comparable": true,
"complex64": true,
"complex128": true,
"error": true,
"float32": true,
"float64": true,
"int8": true,
"int16": true,
"int32": true,
"int64": true,
"int": true,
"rune": true,
"string": true,
"uint8": true,
"uint16": true,
"uint32": true,
"uint64": true,
"uintptr": true,
"uint": true,
"true": true,
"false": true,
"iota": true,
"nil": true,
"append": true,
"cap": true,
"clear": true,
"close": true,
"complex": true,
"copy": true,
"delete": true,
"imag": true,
"len": true,
"make": true,
"max": true,
"min": true,
"new": true,
"panic": true,
"println": true,
"print": true,
"real": true,
"recover": true,
}