Every line of 'golang syntax' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.
119 func IsGolangKeyWord(text string, excepts ...string) bool { 120 for _, each := range excepts { 121 if text == each { 122 return false 123 } 124 } 125 126 switch text { 127 case "var", "const", "package", "import", "func", "return", 128 "defer", "go", "select", "interface", "struct", "break", "case", 129 "continue", "for", "fallthrough", "else", "if", "switch", "goto", 130 "default", "chan", "type", "map", "range": 131 return true 132 default: 133 return false 134 } 135 }
420 func getGoArray(typeName string) string { 421 return "[]" + typeName 422 }
627 func (v *BaseKParserVisitor) VisitTypeAny(ctx *TypeAnyContext) interface{} { 628 return v.VisitChildren(ctx) 629 }