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

package data

import "github.com/go-chi/chi/_examples/versions/data"

Index

Package Files

article.go errors.go

Variables

var (
    ErrUnauthorized = errors.New("Unauthorized")
    ErrForbidden    = errors.New("Forbidden")
    ErrNotFound     = errors.New("Resource not found")
)

func PresentError Uses

func PresentError(r *http.Request, err error) (*http.Request, interface{})

type Article Uses

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.

Package data imports 3 packages (graph) and is imported by 5 packages. Updated 2019-12-16. Refresh now. Tools for package owners.