github.com/jackc/pgx/v5@v5.5.5/.github/ISSUE_TEMPLATE/bug_report.md (about)

     1  ---
     2  name: Bug report
     3  about: Create a report to help us improve
     4  title: ''
     5  labels: bug
     6  assignees: ''
     7  
     8  ---
     9  
    10  **Describe the bug**
    11  A clear and concise description of what the bug is.
    12  
    13  **To Reproduce**
    14  Steps to reproduce the behavior:
    15  
    16  If possible, please provide runnable example such as:
    17  
    18  ```go
    19  package main
    20  
    21  import (
    22  	"context"
    23  	"log"
    24  	"os"
    25  
    26  	"github.com/jackc/pgx/v5"
    27  )
    28  
    29  func main() {
    30  	conn, err := pgx.Connect(context.Background(), os.Getenv("DATABASE_URL"))
    31  	if err != nil {
    32  		log.Fatal(err)
    33  	}
    34  	defer conn.Close(context.Background())
    35  
    36  	// Your code here...
    37  }
    38  ```
    39  
    40  Please run your example with the race detector enabled. For example, `go run -race main.go` or `go test -race`.
    41  
    42  **Expected behavior**
    43  A clear and concise description of what you expected to happen.
    44  
    45  **Actual behavior**
    46  A clear and concise description of what actually happened.
    47  
    48  **Version**
    49   - Go: `$ go version` -> [e.g. go version go1.18.3 darwin/amd64]
    50   - PostgreSQL: `$ psql --no-psqlrc --tuples-only -c 'select version()'` -> [e.g. PostgreSQL 14.4 on x86_64-apple-darwin21.5.0, compiled by Apple clang version 13.1.6 (clang-1316.0.21.2.5), 64-bit]
    51   - pgx: `$ grep 'github.com/jackc/pgx/v[0-9]' go.mod` -> [e.g. v4.16.1]
    52  
    53  **Additional context**
    54  Add any other context about the problem here.