65b5d6e3d2
closes #25 Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
15 lines
173 B
Go
15 lines
173 B
Go
package main
|
|
|
|
func main() {
|
|
var (
|
|
v = newSettings()
|
|
l = newLogger(v)
|
|
g = newGracefulContext(l)
|
|
a = newApp(g, l, v)
|
|
)
|
|
|
|
go a.Server(g)
|
|
go a.Worker(g)
|
|
|
|
a.Wait()
|
|
}
|