package main import ( "bufio" "fmt" "os" "github.com/Shugyousha/stasher/conf" ) func main() { f, err := os.Open("stasher.cfg") if err != nil { fmt.Fprintf(os.Stderr, "Could not open config file 'stasher.cfg': %q\n", err) os.Exit(1) } m := conf.NewManagerFromConfig(bufio.NewReader(f)) fmt.Fprintf(os.Stderr, "manager: %#v\n", m) m.Run() }