Use typed IDs instead of plain strings
This commit is contained in:
@ -2,10 +2,10 @@ package arn
|
||||
|
||||
// hasID includes an object ID.
|
||||
type hasID struct {
|
||||
ID string `json:"id" primary:"true"`
|
||||
ID ID `json:"id" primary:"true"`
|
||||
}
|
||||
|
||||
// GetID returns the ID.
|
||||
func (obj *hasID) GetID() string {
|
||||
func (obj *hasID) GetID() ID {
|
||||
return obj.ID
|
||||
}
|
||||
|
Reference in New Issue
Block a user