2019-06-26 22:02:31 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
|
2019-06-27 22:22:47 +03:00
|
|
|
"github.com/wybiral/tube/pkg/app"
|
2019-06-26 22:02:31 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
const addr = "127.0.0.1:40404"
|
|
|
|
|
|
|
|
func main() {
|
2019-06-27 22:22:47 +03:00
|
|
|
a, err := app.NewApp()
|
2019-06-26 22:02:31 +03:00
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
2019-06-27 22:22:47 +03:00
|
|
|
log.Printf("Serving at http://%s", addr)
|
|
|
|
err = a.Run(addr)
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
2019-06-26 22:02:31 +03:00
|
|
|
}
|
|
|
|
}
|