Features: - Allow to search for individual resources by their name - Add new resources and their handler: Universities, Restaurants - Added new parameter to reverse output order Reviewed-on: #4 Co-authored-by: bdoerfchen <git@bissendorf.co> Co-committed-by: bdoerfchen <git@bissendorf.co>
13 lines
151 B
Go
13 lines
151 B
Go
package interfaces
|
|
|
|
type Resource interface {
|
|
Kind() string
|
|
|
|
ItemName() string
|
|
}
|
|
|
|
type ResourceList struct {
|
|
ItemKind string
|
|
Items []Resource
|
|
}
|