Fork me on GitHub

logo iconGo lang Cheat Sheet

Consolidated and Comprehensive guide to Go Lang.



Importing a package

(Basic Syntax)
import (
    _ "github.com/go-sql-driver/mysql"
    "github.com/jinzhu/gorm"
    _ "github.com/jinzhu/gorm/dialects/mysql" //You could import dialect
 )