1234567891011121314151617181920212223242526 |
- package model
- import "errors"
- type UNLocode string
- type Location struct {
- UNLocode UNLocode
- Name string
- }
- var ErrUnknownLocation = errors.New("unknown location")
- type LocationRepository interface {
- Find(locode UNLocode) (*Location, error)
- FindAll() []*Location
- }
|