Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created June 5, 2018 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cibernomadas/8d11ea3e14f1bcc9e103e15f36bd2fa9 to your computer and use it in GitHub Desktop.
Save Cibernomadas/8d11ea3e14f1bcc9e103e15f36bd2fa9 to your computer and use it in GitHub Desktop.
package main
import (
"github.com/cibernomadas/goblog/webapp/database"
"github.com/cibernomadas/goblog/webapp/router"
)
func main() {
database.DB = database.Init()
defer database.DB.Close()
srv := router.NewServer()
router.RegisterRoutes(srv)
srv.Run("127.0.0.1:8000")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment