Deprecated: Please upgrade to the latest major version: go get github.com/go-chi/chi/v5
package data
import "github.com/go-chi/chi/_examples/versions/data"
Index ¶
Variables ¶
var ( errors.New("Unauthorized") ErrForbidden = errors.New("Forbidden") ErrNotFound = errors.New("Resource not found") )=
Functions ¶
func PresentError ¶
Types ¶
type Article ¶
type Article struct { ID int `db:"id" json:"id" xml:"id"` Title string `db:"title" json:"title" xml:"title"` Data []string `db:"data,stringarray" json:"data" xml:"data"` CustomDataForAuthUsers string `db:"custom_data" json:"-" xml:"-"` }
Article is runtime object, that's not meant to be sent via REST.
Source Files ¶
- Version
- v1.5.5 (latest)
- Published
- Sep 7, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 days ago –
Tools for package owners.