Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

data

v4.1.2
gopkg.in/chi.v4/_examples/versions/data

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

8 matches

Top ↑

Variables

ErrUnauthorized (3 declarations)

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

Functions

PresentError

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

Types

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.

Dependency graph