Add types package
This commit is contained in:
13
types/item.go
Normal file
13
types/item.go
Normal 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
3
types/results.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package types
|
||||
|
||||
type Results []Item
|
||||
Reference in New Issue
Block a user