Documentation ¶
Index ¶
Constants ¶
View Source
const (
ContentType = "application/json"
)
Variables ¶
View Source
var ( // ErrBadIdentifier indicates a bad identifer pattern ErrBadIdentifier = errors.New("invalid identifier, must match " + idRegexp) )
Functions ¶
func EncodeResponse ¶
func EncodeResponse(_ context.Context, w http.ResponseWriter, response interface{}) error
Types ¶
type Identifier ¶
type Identifier struct {
// contains filtered or unexported fields
}
func NewIdentifier ¶
func NewIdentifier(v string) (Identifier, error)
func (*Identifier) IsValid ¶
func (i *Identifier) IsValid() bool
func (*Identifier) Scan ¶
func (i *Identifier) Scan(value interface{}) error
Scan - Implement the database/sql scanner interface
func (*Identifier) String ¶
func (i *Identifier) String() string
Click to show internal directories.
Click to hide internal directories.