Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created July 2, 2018 21:55
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/d39b578133e37c4fe5d1a59bf527a686 to your computer and use it in GitHub Desktop.
Save Cibernomadas/d39b578133e37c4fe5d1a59bf527a686 to your computer and use it in GitHub Desktop.
func NoRouteFn(c *gin.Context) {
c.HTML(http.StatusOK, "index", gin.H{
"title": "Hi! GoBlog.",
"error": "You are requesting something that does not exist.",
})
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment