Adds sample test to check if URLs are validated
This commit is contained in:
parent
a2c5560554
commit
9861d95009
2 changed files with 14 additions and 3 deletions
|
|
@ -15,13 +15,13 @@ func Add(feedUrl string) error {
|
|||
|
||||
feed, err := parseByUrl(feedUrl)
|
||||
|
||||
// TODO: I have everything here (feed), might as well store it right away
|
||||
// Add an article table that stores the feed data that is parsed here
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// TODO: I have everything here (feed), might as well store it right away
|
||||
// Add an article table that stores the feed data that is parsed here
|
||||
|
||||
f := database.Feed{
|
||||
Name: feed.Title,
|
||||
Url: feedUrl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue