diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-02-08 21:41:31 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-02-08 21:41:31 +0100 |
commit | a846cb2a424fd17d43e3edf885cca7d79820fa9f (patch) | |
tree | 8b22a77ee70f87516fb11712b3597e238a2c7943 /main.go | |
parent | b32bcc834620a5c30ab4d7f7b8dde9ffdafd348f (diff) |
[feat] use a config file to check when to produce the next notification
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -11,12 +11,18 @@ const ( ) func main() { - go notificate() + // TODO: do I need to bootstrap the provider? + conf, err := parseConfig() + if err != nil { + log.Fatal(err) + } + + go notificate(conf) b, err := bitmask.Init() if err != nil { log.Fatal(err) } - run(b) + run(b, conf) } |