Skip to content

gaspan/Simple-crud-golang-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#How to Run this Web

  • create db wich name is goblog

  • create table :
    DROP TABLE IF EXISTS employee; CREATE TABLE employee ( id int(6) unsigned NOT NULL AUTO_INCREMENT, name varchar(30) NOT NULL, city varchar(30) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

  • donwload mysql driver by typing: "go get -u github.com/go-sql-driver/mysql"

  • run web by following command : "go run main.go"

  • open browser "http://localhost:8080/"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages