newInstance creates a zeroed pointer instance of the extension type, cast to Extension.
()
| 38 | |
| 39 | // newInstance creates a zeroed pointer instance of the extension type, cast to Extension. |
| 40 | func (e *registryEntry) newInstance() Extension { |
| 41 | return reflect.New(e.elemType).Interface().(Extension) |
| 42 | } |
| 43 | |
| 44 | var extensionRegistry = struct { |
| 45 | allLegacyKeys map[string]struct{} // union of LegacyKeys() across all registered extensions |
no outgoing calls
no test coverage detected