Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

v3

v2.1.0
gopkg.in/chi.v2/_examples/versions/presenter/v3

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

4 matches

Top ↑

Types

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.

NewArticleResponse

func NewArticleResponse(article *data.Article) *Article

Article.Render

func (a *Article) Render(w http.ResponseWriter, r *http.Request) error

Dependency graph