code cleanup
This commit is contained in:
parent
c04f54619b
commit
b223233318
9 changed files with 112 additions and 184 deletions
|
|
@ -1,19 +1,18 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"net/http"
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
type FeedSource struct {
|
||||
Title string `json:"title"`
|
||||
Url string `json:"url"`
|
||||
Url string `json:"url"`
|
||||
}
|
||||
|
||||
const feedLinks = `link[type='application/rss+xml'],link[type='application/atom+xml']`
|
||||
|
||||
|
||||
func FindFeeds(r *http.Response) ([]FeedSource, error) {
|
||||
sources := make([]FeedSource, 0, 0)
|
||||
doc, err := goquery.NewDocumentFromResponse(r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue