moved to pkgs
This commit is contained in:
parent
7ea6ba6809
commit
843a357428
8 changed files with 44 additions and 41 deletions
14
cmd/dealsbot/api/api.go
Normal file
14
cmd/dealsbot/api/api.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package api
|
||||
|
||||
type Api interface {
|
||||
Load() error
|
||||
Get() []Deal
|
||||
}
|
||||
|
||||
type DealsMap map[string]Deal
|
||||
|
||||
type Deal struct {
|
||||
Id string
|
||||
Title string
|
||||
Url string
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue