Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.43 KB

CONTRIBUTING.md

File metadata and controls

52 lines (38 loc) · 1.43 KB

How to Contribute

Bug Report

  • Do a search on GitHub under Issues in case it has already been reported
  • Submit executable script or failing test pull request that could demonstrates the issue is MUST HAVE

Feature Request

  • Feature request with pull request is welcome
  • Or it won't be implemented until I (other developers) find it is helpful for my (their) daily work

Pull Request

  • Prefer single commit pull request, that make the git history can be a bit easier to follow.
  • New features need to be covered with tests to make sure your code works as expected, and won't be broken by others in future

Contributing to Documentation

Executable script template

package main

import (
	_ "github.com/go-sql-driver/mysql"
	"github.com/jinzhu/gorm"
	_ "github.com/lib/pq"
	_ "github.com/mattn/go-sqlite3"
)

var db *gorm.DB

func init() {
	var err error
	db, err = gorm.Open("sqlite3", "test.db")
	// db, err = gorm.Open("postgres", "user=username dbname=password sslmode=disable")
	// db, err = gorm.Open("mysql", "user:password@/dbname?charset=utf8&parseTime=True")
	if err != nil {
		panic(err)
	}
	db.LogMode(true)
}

func main() {
	// Your code
}