matryer/goblueprints

Ch. 6: Wrong tag string in `poll` struct.

Closed this issue · 1 comments

HI Mat,

I found a wrong tag string in "Handling endpoints" section on ch. 6.

// api/polls.go
type poll struct {
    Title string `json":"title""`
}

The double quote before : in this tag doesn't seem to be needed.

// api/polls.go
type poll struct {
    Title string `json:"title""`
}

It's collect in this repository code.(

Title string `json:"title" bson:"title"`
)

Thanks.