Add a packageid keyword.

This commit is contained in:
Nigel Tao committed 2017-07-06 11:17:15 +10:00
1 parent 6d5e2f0193
commit 17b518376f
8 files changed
+197 -108

No files matched your search

+7
View File
@@ -13,6 +13,13 @@ const (
maxTokenSize = 1023
)
func Unescape(s string) (unescaped string, ok bool) {
if len(s) < 2 || s[0] != '"' || s[len(s)-1] != '"' {
return "", false
}
return s[1 : len(s)-1], true
}
type Map struct {
byName map[string]ID
byKey []string