8 lines
221 B
Go
8 lines
221 B
Go
package data
|
|
|
|
// Defines an Id function that uniquely identifies an object. This may be used
|
|
// as a primary key in a database/ datastore.
|
|
type IIdentifiable interface {
|
|
Id() string // not allowed to contain a ':'
|
|
}
|