Build SQL update query for HTTP Patch request in Golang

It seems pretty straightforward to implement HTTP Patch request. The handler receives the request, unmarshals the body, validates the payload, sanitizes it and then sends it to persist layer for persisting into the Database. Let’s look into an example. For example, we are updating a user resource. type UserResource struct { FirstName string `json:”first_name,omitempty” db:”first_name”` …