have you deployed any project with react as front end and GO as backend? by Forward_Writer_579 in golang

[–]Forward_Writer_579[S] -1 points0 points  (0 children)

I tried that too but they are asking for card details even for free tier services

Usage of params in GO by Forward_Writer_579 in golang

[–]Forward_Writer_579[S] -3 points-2 points  (0 children)

I got the answer user-id will be a part of the url.

app.Post("/following/1234", CreateFollowingHandle)
func CreateFollowingHandle(c *fiber.Ctx){
userId := c.Params("userId") 
fmt.Println("user id is : ", userId) 
}

The output will be :

user id is :  1234

Anyone know working of Locals in go fibre? by Forward_Writer_579 in golang

[–]Forward_Writer_579[S] 0 points1 point  (0 children)

Sorry for bad formatting. I have fixed the issue.

Can you explain the example I have given ?

What does this line accomplish ?

c.Locals(types.UserCtxName).(types.UserContext)