Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
func holaMundo(c *gin.Context) {
user := "Cibernómada"
c.Writer.WriteHeader(http.StatusOK)
c.Writer.Write([]byte(fmt.Sprintf(`
<html>
<head>
<title>GoBlog</title>
</head>
<body>
<p>Hola <b>%s</b></p>
</body>
</html>`, user)))
}
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.