Cleanup
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
package arn
|
||||
|
||||
// IDList stores lists of IDs that are retrievable by name.
|
||||
type IDList []string
|
||||
type IDList []ID
|
||||
|
||||
// GetIDList ...
|
||||
func GetIDList(id string) (IDList, error) {
|
||||
func GetIDList(id ID) (IDList, error) {
|
||||
obj, err := DB.Get("IDList", id)
|
||||
|
||||
if err != nil {
|
||||
@ -15,6 +15,6 @@ func GetIDList(id string) (IDList, error) {
|
||||
}
|
||||
|
||||
// Append appends the given ID to the end of the list and returns the new IDList.
|
||||
func (idList IDList) Append(id string) IDList {
|
||||
func (idList IDList) Append(id ID) IDList {
|
||||
return append(idList, id)
|
||||
}
|
||||
|
Reference in New Issue
Block a user