Templates are working, just empty
This commit is contained in:
@@ -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{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user