Identifier is an interface for anything that implements the basic ID() uint64, as the BasicEntity does. It is useful as more specific interface for an entity registry than just the interface{} interface
| 22 | // as the BasicEntity does. It is useful as more specific interface for an |
| 23 | // entity registry than just the interface{} interface |
| 24 | type Identifier interface { |
| 25 | ID() uint64 |
| 26 | } |
| 27 | |
| 28 | // IdentifierSlice implements the sort.Interface, so you can use the |
| 29 | // store entites in slices, and use the P=n*log n lookup for them |
no outgoing calls
no test coverage detected
searching dependent graphs…