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))
}