addImplementor records that an object type implements this interface.
(typeName string)
| 379 | |
| 380 | // addImplementor records that an object type implements this interface. |
| 381 | func (iface *Interface) addImplementor(typeName string) { |
| 382 | iface.relationsL.Lock() |
| 383 | defer iface.relationsL.Unlock() |
| 384 | iface.implementors[typeName] = struct{}{} |
| 385 | } |
| 386 | |
| 387 | // HasImplementor returns true if the named object or interface type implements |
| 388 | // this interface. |
no outgoing calls
no test coverage detected