Adds a common interface: idNamer, which is used to pass around tuples of an id and a name for some resource. Also adds compliance to this iface in selectors, where a selector's ID and Name are the DiscreteOwner values.
7 lines
71 B
Go
7 lines
71 B
Go
package common
|
|
|
|
type IDNamer interface {
|
|
ID() string
|
|
Name() string
|
|
}
|