Templates are working, just empty

This commit is contained in:
2017-10-05 00:08:07 +02:00
parent 525fbb4f94
commit 8c8aad3312
9 changed files with 133 additions and 27 deletions
+9
View File
@@ -25,6 +25,15 @@ type server struct {
Config Config
}
func (srv *server) Start() {
log.Println(fmt.Sprintf("Running: http://%s:%d", srv.Config.Server.Host, srv.Config.Server.Port))
_, err := srv.Router.Listen(srv.Config.Server.Host, srv.Config.Server.Port)
if err != nil {
log.Fatalf("Failed to init listen: %s", err)
}
}
// Main is the main instance
var Main = server{}