diff --git a/snippetbox/internal/models/snippets.go b/snippetbox/internal/models/snippets.go index ba061ed..47243dc 100644 --- a/snippetbox/internal/models/snippets.go +++ b/snippetbox/internal/models/snippets.go @@ -44,6 +44,7 @@ func (m *SnippetModel) Get(id int) (*Snippet, error) { } } return s, nil + } func (m *SnippetModel) Latest() ([]*Snippet, error) {