github.com/glycerine/zebrapack@v4.1.1-0.20181107023619-e955d028f9bf+incompatible/cmd/addzid/keyw.go (about) 1 package main 2 3 var capnpKeywords map[string]bool = map[string]bool{ 4 "Void": true, "Bool": true, "Int8": true, "Int16": true, "Int32": true, "Int64": true, "UInt8": true, "UInt16": true, "UInt32": true, "UInt64": true, "Float32": true, "Float64": true, "Text": true, "Data": true, "List": true, "struct": true, "union": true, "group": true, "enum": true, "AnyPointer": true, "interface": true, "extends": true, "const": true, "using": true, "import": true, "annotation": true} 5 6 func isCapnpKeyword(w string) bool { 7 return capnpKeywords[w] // not found will return false, the zero value for bool. 8 }