Explorar el Código

move fetching into it's own function

Lucas Stadler %!s(int64=11) %!d(string=hace) años
padre
commit
3c8a961911
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      go/feeds/feeds.go

+ 4 - 0
go/feeds/feeds.go

@ -28,6 +28,10 @@ import (
28 28
// test (see feeds_test.go)
29 29
30 30
func main() {
31
	FetchAll()
32
}
33
34
func FetchAll() {
31 35
	feeds, err := ReadConfig("config.txt")
32 36
	if err != nil {
33 37
		fmt.Println(err)