DEV Community

badruti94
badruti94

Posted on • Edited on

Catatan belajar golang

  • get req params
ctx.Param("id")
Enter fullscreen mode Exit fullscreen mode
  • get req query
c.Query("lastname")
Enter fullscreen mode Exit fullscreen mode
  • get req body
ctx.Bind(&fruit)
//or
name := c.PostForm("name")
Enter fullscreen mode Exit fullscreen mode

.

doc

Top comments (4)

Collapse
 
badruti94 profile image
badruti94

tes komen 3

Collapse
 
badruti94 profile image
badruti94

tes komen 2

Collapse
 
badruti94 profile image
badruti94

tes

Collapse
 
badruti94 profile image
badruti94

tes replyl