url in discord message
This commit is contained in:
@@ -5,9 +5,15 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Entry represents a single fetched item.
|
||||
type Entry struct {
|
||||
Title string
|
||||
URL string
|
||||
}
|
||||
|
||||
// Fetcher is the interface for a fetcher.
|
||||
type Fetcher interface {
|
||||
Fetch() []string
|
||||
Fetch() []Entry
|
||||
}
|
||||
|
||||
func getJSON(req *http.Request, target interface{}) error {
|
||||
|
||||
Reference in New Issue
Block a user