Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.