url in discord message

This commit is contained in:
2026-01-20 01:12:17 +01:00
parent b22e72c28f
commit 8f51e6d981
6 changed files with 34 additions and 16 deletions

View File

@@ -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 {