Reset deletes all the existing bindings and empties the container.
()
| 133 | |
| 134 | // Reset deletes all the existing bindings and empties the container. |
| 135 | func (c Container) Reset() { |
| 136 | for k := range c { |
| 137 | delete(c, k) |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // Singleton binds an abstraction to concrete in singleton mode. |
| 142 | // It takes a resolver function that returns the concrete, and its return type matches the abstraction (interface). |
no outgoing calls