Created
June 5, 2018 21:56
-
-
Save Cibernomadas/8d11ea3e14f1bcc9e103e15f36bd2fa9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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