Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
build
/
kati
/
9ae81d00386ababfc8c3cbac82fda122587b990a
/
.
/
symtab.go
blob: c1625356a3e4fc5e694fe5d1c338ba6cb8ddaa15 [
file
] [
log
] [
blame
]
package main
var symtab = make(map[string]string)
func intern(s string) string {
if v, ok := symtab[s]; ok {
return v
}
symtab[s] = s
return s
}
func internBytes(s []byte) string {
return intern(string(s))
}