Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created Jun 26, 2018
Embed
What would you like to do?
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