Register registers the Provider builder, whose name as returned by its Name() method will be used as the name registered with this builder. Registered Builders are used by the Store to create Providers.
(b Builder)
| 51 | // method will be used as the name registered with this builder. Registered |
| 52 | // Builders are used by the Store to create Providers. |
| 53 | func Register(b Builder) { |
| 54 | m[b.Name()] = b |
| 55 | } |
| 56 | |
| 57 | // getBuilder returns the Provider builder registered with the given name. |
| 58 | // If no builder is registered with the provided name, nil will be returned. |