Put everything in main package for simplicity for now
This commit is contained in:
parent
e08b03eaee
commit
df524732ae
4
main.go
4
main.go
|
@ -2,12 +2,10 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.shillerben.com/shillerben/go-rss/rss"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
items, err := rss.FetchRss("https://rss.slashdot.org/Slashdot/slashdotMain")
|
items, err := FetchRss("https://rss.slashdot.org/Slashdot/slashdotMain")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package rss
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
Loading…
Reference in New Issue
Block a user