ch.5.2

command
v0.0.0-...-7288d7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Setup for ch.5.2

  • Step 1) Install and run MySql

  • 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

Overview

Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL