namedToolSet decorates a ToolSet with a stable Name(). Every other capability is delegated to the inner toolset via the embedded ToolSet interface; As[T] reaches the inner type through Unwrap so e.g. Statable, Restartable and Kinder remain visible through the wrapper.
| 45 | // interface; As[T] reaches the inner type through Unwrap so e.g. |
| 46 | // Statable, Restartable and Kinder remain visible through the wrapper. |
| 47 | type namedToolSet struct { |
| 48 | ToolSet |
| 49 | |
| 50 | name string |
| 51 | } |
| 52 | |
| 53 | // Compile-time guarantee that namedToolSet exposes Named and Unwrapper. |
| 54 | var ( |
nothing calls this directly
no outgoing calls
no test coverage detected