isRegisteredExtensionLegacyKey reports whether key matches a flat legacy key declared by any registered extension. Must be called with extensionRegistry.RLock held.
(key string)
| 309 | // isRegisteredExtensionLegacyKey reports whether key matches a flat legacy key declared by any |
| 310 | // registered extension. Must be called with extensionRegistry.RLock held. |
| 311 | func isRegisteredExtensionLegacyKey(key string) bool { |
| 312 | _, ok := extensionRegistry.allLegacyKeys[key] |
| 313 | return ok |
| 314 | } |
| 315 | |
| 316 | // unknownExtensionKeyError is returned by processExtensions when a key in |
| 317 | // o.Extensions is not found in the registry |