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

package v1

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

Index

Package Files

article.go

type Article Uses

type Article struct {
    *data.Article

    Data map[string]bool `json:"data" xml:"data"`
}

Article presented in API version 1.

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 v1 imports 2 packages (graph) and is imported by 1 packages. Updated 2019-12-16. Refresh now. Tools for package owners.