models

package
v0.0.0-...-7a00548 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	CreatedAt   string `json:"created_at"`
}

func (*Item) Bind

func (i *Item) Bind(r *http.Request) error

func (*Item) Render

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

type ItemList

type ItemList struct {
	Items []Item `json:"items"`
}

func (*ItemList) Render

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL