diff --git a/README.md b/README.md index 1260618a..349bb860 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The fantastic ORM library for Golang, aims to be developer friendly. -[![go report card](https://goreportcard.com/badge/gorm.io/gorm "go report card")](https://goreportcard.com/report/gorm.io/gorm) +[![go report card](https://goreportcard.com/badge/github.com/go-gorm/gorm "go report card")](https://goreportcard.com/report/github.com/go-gorm/gorm) [![wercker status](https://app.wercker.com/status/55136410c77335a6289ebd58b2f70125/s/master "wercker status")](https://app.wercker.com/project/byKey/55136410c77335a6289ebd58b2f70125) [![Join the chat at https://gitter.im/jinzhu/gorm](https://img.shields.io/gitter/room/jinzhu/gorm.svg)](https://gitter.im/jinzhu/gorm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Open Collective Backer](https://opencollective.com/gorm/tiers/backer/badge.svg?label=backer&color=brightgreen "Open Collective Backer")](https://opencollective.com/gorm) diff --git a/callbacks/create.go b/callbacks/create.go index fca9d374..091f1774 100644 --- a/callbacks/create.go +++ b/callbacks/create.go @@ -196,7 +196,7 @@ func ConvertToCreateValues(stmt *gorm.Statement) clause.Values { values = clause.Values{Columns: make([]clause.Column, 0, len(stmt.Schema.DBNames))} selectColumns, restricted = SelectAndOmitColumns(stmt, true, false) curTime = stmt.DB.NowFunc() - isZero = false + isZero bool ) for _, db := range stmt.Schema.DBNames { diff --git a/model.go b/model.go index dcc3cdc2..3334d17c 100644 --- a/model.go +++ b/model.go @@ -3,7 +3,7 @@ package gorm import "time" // Model a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt -// It may be embeded into your model or you may build your own model without it +// It may be embedded into your model or you may build your own model without it // type User struct { // gorm.Model // }