Skip to content

Conversation

@liusongsen
Copy link
Contributor

func GetBlog(id int) (blog Blog) {
db := GetLink()
db.Where("id=?", id).Find(&blogs)
return
}

models/cart.go:34: undefined: blogs

func GetBlog(id int) (blog Blog) {
    db := GetLink()
    db.Where("id=?", id).Find(&blogs)
    return
}

models/cart.go:34: undefined: blogs
astaxie added a commit that referenced this pull request May 6, 2013
@astaxie astaxie merged commit efaa43e into astaxie:master May 6, 2013
astaxie added a commit that referenced this pull request Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants