Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
build
/
kati
/
7adc0f5392b543e892c5623c33f36071f10b56a7
/
.
/
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))
}