Skip to content

Instantly share code, notes, and snippets.

View ascali's full-sized avatar
:octocat:
I may be slow to respond.

Ascaliko ascali

:octocat:
I may be slow to respond.
View GitHub Profile
@ascali
ascali / simplest_mysql.go
Created November 15, 2021 04:49 — forked from nakagami/simplest_mysql.go
My first Go + mysql sample code. 1. go get github.com/go-sql-driver/mysql 2. mysql -e 'create database test_go;' 3. go run simplest_mysql.go
// Please crete database before go run this code
// ex) mysql -u root -e 'create database test_go;'
package main
import (
"os"
"fmt"
"database/sql"
_ "github.com/go-sql-driver/mysql"
)