-
Notifications
You must be signed in to change notification settings - Fork 4
/
known_words.go
74 lines (65 loc) · 1.89 KB
/
known_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
// Copyright ©2022 Dan Kortschak. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
// knownWords contains a list of commonly encountered words that
// may not be in user dictionaries.
var knownWords = []string{
"golang",
// Keywords
"break", "case", "chan", "const", "continue", "default",
"defer", "else", "fallthrough", "for", "func", "go", "goto",
"if", "import", "interface", "map", "package", "range",
"return", "select", "struct", "switch", "type", "var",
// Built-in
"append", "cap", "cgo", "copy", "goroutine", "goroutines", "init",
"inits", "len", "make", "map", "new", "nil", "panic", "print",
"println", "recover",
// Built-in types
"bool",
"int", "int8", "int16", "int32", "int64",
"uint", "uint8", "uint16", "uint32", "uint64", "uintptr",
"float32", "float64",
"complex64", "complex128",
"string", "byte", "rune",
// Commonly used words
"allocator", "args", "async", "boolean", "booleans", "codec", "endian",
"gcc", "hostname", "http", "https", "localhost", "NaN", "NaNs", "rpc",
"symlink", "symlinks", "toolchain", "toolchains",
// Architectures
"aix", "amd64", "arm64", "darwin", "freebsd", "illumos", "ios", "js",
"linux", "mips", "mips64", "mips64le", "mipsle", "netbsd", "openbsd",
"ppc64", "ppc64le", "riscv64", "s390x", "solaris", "wasm", "windows",
// Compiler comments
"c1",
"c2",
"cgo_dynamic_linker",
"cgo_export_dynamic",
"cgo_export_static",
"cgo_import_dynamic",
"cgo_import_static",
"cgo_ldflag",
"cgo_unsafe_args",
"d1",
"d2",
"e1",
"e2",
"empty1",
"empty2",
"linkname",
"nocheckptr",
"noescape",
"noinline",
"nointerface",
"norace",
"nosplit",
"notinheap",
"nowritebarrier",
"nowritebarrierrec",
"registerparams",
"systemstack",
"uintptrescapes",
"yeswritebarrierrec",
// Common hosters
"bitbucket", "github", "gitlab", "sourcehut", "sr", "ht",
}