(s string)
| 32 | } |
| 33 | |
| 34 | func (p *InternStringPool) get(s string) (string, bool) { |
| 35 | p.mutex.RLock() |
| 36 | z, ok := p.pool[s] |
| 37 | p.mutex.RUnlock() |
| 38 | return z, ok |
| 39 | } |
| 40 | |
| 41 | func (p *InternStringPool) intern(s string, shouldCopy bool) string { |
| 42 | z, ok := p.get(s) |