command
Version:
v0.0.0-...-7288d7d
Opens a new window with list of versions in this module.
Published: Sep 5, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Setup for ch.5.4
-
Step 1) Install and run Postgres
-
Step 2) Create a user and database according to the constants in main.go
DB_USER = "user"
DB_PASSWORD = ""
DB_NAME = "test"
-
Step 3) Create table userinfo
located at schema.sql
-
Step 4) Run go get
to download and install the remote packages.
-
Step 5) Execute the program with go run main.go
Documentation
¶
Example code for Chapter 5.4 from "Build Web Application with Golang"
Purpose: Show how to perform CRUD operations using a postgres driver
Source Files
¶
Click to show internal directories.
Click to hide internal directories.