12 lines
175 B
Go
Raw Normal View History

2019-06-03 18:32:43 +09:00
package arn
// hasID includes an object ID.
type hasID struct {
2019-11-18 14:01:13 +09:00
ID ID `json:"id" primary:"true"`
2019-06-03 18:32:43 +09:00
}
// GetID returns the ID.
2019-11-18 14:01:13 +09:00
func (obj *hasID) GetID() ID {
2019-06-03 18:32:43 +09:00
return obj.ID
}