Could anyone advise how to overcome this problem please ?
func GetUserController(c echo.Context) error {
id := c.Param("id")
finduser := users[id]
return c.JSON(http.StatusOK,finduser)}
var users []User
type User struct {
Id int `json:"id"`
}`
Results in error:
invalid argument: index id (variable of type string) must be integer