How can I parse SQL constraint errors, in particular resulting from constraints such as
ON DELETE RESTRICT within Go?
e.g. Insert a new user that may have the same email which is defined as a
UNIQUE field in the database. Parse constraint error in Go, return error to browser client.