Deprecated: Please upgrade to the latest major version: go get github.com/go-chi/chi/v5

package v1

import "github.com/go-chi/chi/_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
v1.5.5 (latest)
Published
Sep 7, 2023
Platform
linux/amd64
Imports
2 packages
Last checked
2 days ago

Tools for package owners.