From 1019783c90191e804d2a8d4e614725fb0cb34f53 Mon Sep 17 00:00:00 2001 From: Lee Brooks Date: Sun, 5 Jan 2014 15:07:50 +0200 Subject: [PATCH 1/2] Added installation note to the docs --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 75d4cb32..ea2fe2ae 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ The fantastic ORM library for Golang, aims to be developer friendly. +## Install + +``` +go get github.com/jinzhu/gorm +``` + ## Overview * Chainable API From 0459aa89db56408f397502dac26693ebfa5e38c1 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Wed, 22 Jan 2014 09:05:43 +0800 Subject: [PATCH 2/2] Don't use goroutine to print log --- private.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private.go b/private.go index 84f0cd9d..c107c371 100644 --- a/private.go +++ b/private.go @@ -66,7 +66,7 @@ func fileWithLineNum() string { } func (s *DB) print(v ...interface{}) { - go s.parent.logger.(logger).Print(v...) + s.parent.logger.(logger).Print(v...) } func (s *DB) log(v ...interface{}) {