Add types package

This commit is contained in:
James Mills
2021-01-30 23:50:26 +10:00
parent 9ae2a31cfa
commit 23e030a95d
4 changed files with 29 additions and 81 deletions

13
types/item.go Normal file
View File

@@ -0,0 +1,13 @@
package types
type Item struct {
ID int
Length int
URL string
Title string
Author string
Summary string
Content string
HTMLContent string
}

3
types/results.go Normal file
View File

@@ -0,0 +1,3 @@
package types
type Results []Item