Using null values in supabase-golang
Hi Im new at Go I was trying to implement null values as a column value in supabase-golang
https://github.com/nedpals/supabase-go
Unable to insert records into supabase table in Golang
func verifyUser(w http.ResponseWriter, r *http.Request) { supabaseClient := supabase.SupabaseClient var body map[string]string err := json.NewDecoder(r.Body).Decode(&body) if err != nil || body == nil { fmt.Println(err) w.WriteHeader(http.StatusBadRequest) responseUtils.WriteResponse(w, http.StatusBadRequest, “JSON Body contains invalid parameters”, nil) return } decoded := helper.Decode(body[“accessToken”]) insertResponse, count, err := supabaseClient.From(“users”).Insert(helper.User{ Email: decoded.Email, Provider: decoded.AppMetadata.Provider, LoggedIn: true, SessionID: decoded.SessionID, ImgURL: decoded.UserMetadata.AvatarURL, FullName: […]