Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Presenter = render.NewPresenter(CatchAll, ArticleToV3, ArticleChanToV3Chan, ArticleSliceToV3Slice)
Functions ¶
func ArticleChanToV3Chan ¶
An optional, optimized presenter for channnel of Articles. If not defined, each item will be preseted using ArticleToV3() func.
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 ArticleSliceToV3Slice ¶
An optional, optimized presenter for slice of Articles. If not defined, each item will be preseted using ArticleToV3() func.
Click to show internal directories.
Click to hide internal directories.