GetGroup returns the named group previously created with NewGroup, or nil if there's no such group.
(name string)
| 66 | // GetGroup returns the named group previously created with NewGroup, or |
| 67 | // nil if there's no such group. |
| 68 | func GetGroup(name string) *Group { |
| 69 | mu.RLock() |
| 70 | g := groups[name] |
| 71 | mu.RUnlock() |
| 72 | return g |
| 73 | } |
| 74 | |
| 75 | // NewGroup creates a coordinated group-aware Getter from a Getter. |
| 76 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…