Просмотр исходного кода

move fetching into it's own function

Lucas Stadler лет назад: 11
Родитель
Сommit
3c8a961911
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      go/feeds/feeds.go

+ 4 - 0
go/feeds/feeds.go

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