chi: github.com/go-chi/chi/_examples/versions/presenter/v2 Index | Files

package v2

import "github.com/go-chi/chi/_examples/versions/presenter/v2"

Index

Package Files

article.go

type Article Uses

type Article struct {
    *data.Article

    // Additional fields.
    SelfURL string `json:"self_url" xml:"self_url"`

    // Omitted fields.
    URL interface{} `json:"url,omitempty" xml:"url,omitempty"`
}

Article presented in API version 2.

func NewArticleResponse Uses

func NewArticleResponse(article *data.Article) *Article

func (*Article) Render Uses

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

Package v2 imports 3 packages (graph) and is imported by 2 packages. Updated 2019-12-16. Refresh now. Tools for package owners.