package
Version:
v0.0.0-...-7c4a8a6
Opens a new window with list of versions in this module.
Published: May 21, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Category struct {
ID string `json:"id"`
Names []string `json:"names"`
}
type GetFeaturedPostsResponse struct {
Title string `json:"title"`
Posts []*Post `json:"posts"`
}
type Image struct {
Type string `json:"_type"`
Asset struct {
Ref string `json:"_ref"`
Type string `json:"_type"`
} `json:"asset"`
}
type Post struct {
Slug string `json:"slug"`
Title string `json:"title"`
Description string `json:"description"`
MainImage *Image `json:"mainImage"`
PublishedAt time.Time `json:"publishedAt"`
Categories []*Category `json:"categories"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.