DEV Community

Discussion on: API With GO Buffalo in 2021: from zero to deploy

Collapse
robinhuiser profile image
Robin Huiser

Hi,

Typo in your example in file todo.go -- you refer to func (u User) -- which does not exist!

Should be:

// TableName overrides the table name used by Pop.
func (t Todo) TableName() string {
    return "todos"
}
Enter fullscreen mode Exit fullscreen mode