command
module
Version:
v0.0.0-...-2fe36fd
Opens a new window with list of versions in this module.
Published: Feb 10, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Installation
- Create a PostgreSQL database named
example
$ createdb example
-
Update the connection string in the main() function on main.go
-
Run or build the app:
$ go run main.go # or...
$ go build main.go
$ ./main
$ curl -i http://127.0.0.1:8000/
HTTP/1.1 200 OK
Date: Mon, 10 Feb 2020 09:20:08 GMT
Content-Length: 265
Content-Type: text/html; charset=utf-8
...
Released under MIT
Documentation
¶
An example of using the github.com/lib/pq package to
interface with a PostgreSQL database
Source Files
¶
Click to show internal directories.
Click to hide internal directories.