Formulário de Várias Partes / URL Codificada
func main() {
router := gin.Default()
router.POST("/form_post", func(c *gin.Context) {
message := c.PostForm("message")
nick := c.DefaultPostForm("nick", "anonymous")
c.JSON(200, gin.H{
"status": "posted",
"message": message,
"nick": nick,
})
})
router.Run(":8080")
}
Last modified 11.09.2023: docs(pt): translate the entire website to portuguese (#229) (59b1d02)