package v3
import "github.com/go-chi/chi/v5/_examples/versions/presenter/v3"
Index ¶
Types ¶
type Article ¶
type Article struct { *data.Article `json:",inline" xml:",inline"` // Additional fields. URL string `json:"url" xml:"url"` ViewsCount int64 `json:"views_count" xml:"views_count"` APIVersion string `json:"api_version" xml:"api_version"` // Omitted fields. // Show custom_data explicitly for auth'd users only. CustomDataForAuthUsers interface{} `json:"custom_data,omitempty" xml:"custom_data,omitempty"` }
Article presented in API version 2.
func NewArticleResponse ¶
func (*Article) Render ¶
Source Files ¶
- Version
- v5.0.0
- Published
- Feb 28, 2021
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 2 hours ago –
Tools for package owners.