package v1

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

Index

Types

type Article

type Article struct {
	*data.Article

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

Article presented in API version 1.

func NewArticleResponse

func NewArticleResponse(article *data.Article) *Article

func (*Article) Render

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

Source Files

article.go

Version
v5.0.0
Published
Feb 28, 2021
Platform
linux/amd64
Imports
2 packages
Last checked
9 hours ago

Tools for package owners.