models

package
v0.0.0-...-323ed30 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Adjective

type Adjective struct {
	Id        int       `json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	Content   string    `json:"content" binding:"required"`
	Votes     int       `json:"votes"`
}

func (Adjective) Validate

func (n Adjective) Validate(errors *binding.Errors, req *http.Request)

type Name

type Name struct {
	Id        int       `json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	Content   string    `json:"content" binding:"required"`
	Votes     int       `json:"votes"`
}

func (Name) Validate

func (n Name) Validate(errors *binding.Errors, req *http.Request)

Jump to

Keyboard shortcuts

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