Add more docs

This commit is contained in:
2021-12-16 21:34:44 +01:00
parent 8e92ba0f9e
commit a9b5ac4df2
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -4,7 +4,10 @@ package ghost
// Client is the ghost backend client
type Client interface {
// GetPosts returns blog posts according to query params
GetPosts(queryParams ...Modifier) (posts *Posts, err error)
// GetPostBySlug returns a single post by its slug title and query params
GetPostBySlug(slug string, queryParams ...Modifier) (posts *Posts, err error)
// GetPageBySlug returns a single page by its slug title and query params
GetPageBySlug(slug string, queryParams ...Modifier) (pages *Pages, err error)
}
+1
View File
@@ -2,6 +2,7 @@ package templates
import "html/template"
// UseFuncs returns a func map with template helpers functions
func UseFuncs() template.FuncMap {
return template.FuncMap{
"add": func(i int) int {