Gin Gonic doesn't handle binding of multipart form data with custom types. This provides basic implementation of binding the form data into a struct. This code can be modified to fit ones need.
if err := utils.CustomBind(c.Request, &user); err != nil {
u.logger.Zap.Error(err)
c.JSON(http.StatusInternalServerError, gin.H{