Named contains a general implementation of the properties and methods needed to support named resources. It should be used as a starting point to avoid re-implementing the straightforward name methods.
| 33 | // to support named resources. It should be used as a starting point to avoid |
| 34 | // re-implementing the straightforward name methods. |
| 35 | type Named struct { |
| 36 | // Xname is the stored name. It should be called `name` but it must be |
| 37 | // public so that the `encoding/gob` package can encode it properly. |
| 38 | Xname string |
| 39 | |
| 40 | // Bug5819 works around issue https://github.com/golang/go/issues/5819 |
| 41 | Bug5819 interface{} // XXX: workaround |
| 42 | } |
| 43 | |
| 44 | // Name returns the unique name this resource has. It is only unique within its |
| 45 | // own kind. |
nothing calls this directly
no outgoing calls
no test coverage detected