github.com/chrislusf/greenpack@v3.7.1-0.20170911073826-ad5bd10b7c47+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  }