Golang Error Handling

From UVOO Tech Wiki
Jump to navigation Jump to search

``` log.Fatal panic

db, err := sql.Open("postgres", connStr)

  if err != nil {
      log.Fatal(err)
  }

``