21 lines
278 B
Go
21 lines
278 B
Go
|
package app
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"log"
|
||
|
|
||
|
"go.balki.me/tss/config"
|
||
|
)
|
||
|
|
||
|
func Run(configPath string) {
|
||
|
cfg, err := config.Parse(configPath)
|
||
|
if err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
|
||
|
for _, feed := range c.Feeds {
|
||
|
log.Println("Processing feed", feed.Name)
|
||
|
}
|
||
|
fmt.Println(configPath)
|
||
|
}
|