newStringInterner creates a new string interner
()
| 17 | |
| 18 | // newStringInterner creates a new string interner |
| 19 | func newStringInterner() *stringInterner { |
| 20 | return &stringInterner{} |
| 21 | } |
| 22 | |
| 23 | // intern returns a canonical version of the string, reducing memory usage |
| 24 | func (si *stringInterner) intern(s string) string { |
no outgoing calls