mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Add a packageid keyword.
This commit is contained in:
1 parent
6d5e2f0193
commit
17b518376f
8 files changed
+197
-108
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user