github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/brutecheck/check/mapcheck.go (about) 1 package check 2 3 var __mapcheck = map[string]struct{}{ 4 "break": struct{}{}, 5 "case": struct{}{}, 6 "chan": struct{}{}, 7 "const": struct{}{}, 8 "continue": struct{}{}, 9 "default": struct{}{}, 10 "defer": struct{}{}, 11 "else": struct{}{}, 12 "fallthrough": struct{}{}, 13 "for": struct{}{}, 14 "func": struct{}{}, 15 "go": struct{}{}, 16 "goto": struct{}{}, 17 "if": struct{}{}, 18 "import": struct{}{}, 19 "interface": struct{}{}, 20 "map": struct{}{}, 21 "package": struct{}{}, 22 "range": struct{}{}, 23 "return": struct{}{}, 24 "select": struct{}{}, 25 "struct": struct{}{}, 26 "switch": struct{}{}, 27 "type": struct{}{}, 28 "var": struct{}{}, 29 } 30 31 func MapCheck(name string) bool { 32 _, ok := __mapcheck[name] 33 return ok 34 }