github.com/jackc/pgx/v5/pgconn.PgError.SQLState (method) one use github.com/jackc/pgx/v5/pgconn (current package) errors.go#L58: func (pe *PgError) SQLState() string {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)