Closed cenkkoroglu closed 2 years ago
User struct members are exported because these members are not accessible from the outside of package.
currentUserCtx := ctx.Locals("user") marshall, err := json.Marshall(currentUserCtx) if err != nil { panic(err) }
Gives an error because there are no exported member of user struct.
User struct members are exported because these members are not accessible from the outside of package.
Gives an error because there are no exported member of user struct.