get returns a particle by id (key).
(id string)
| 801 | |
| 802 | // get returns a particle by id (key). |
| 803 | func (p *particles) get(id string) *particle { |
| 804 | p.RLock() |
| 805 | defer p.RUnlock() |
| 806 | return p.internal[id] |
| 807 | } |
| 808 | |
| 809 | // len returns the number of particles. |
| 810 | func (p *particles) len() int { |
no outgoing calls