Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created June 26, 2018 20:02
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/1925c6e6087292f9c290af44581ded77 to your computer and use it in GitHub Desktop.
Save Cibernomadas/1925c6e6087292f9c290af44581ded77 to your computer and use it in GitHub Desktop.
func NewServer() *gin.Engine {
RegisterSerializers()
srv := gin.Default()
srv.Use(ResisterDatabase())
srv.Use(RegisterSession())
srv.HTMLRender = TemplateRender()
return srv
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment