validations

package
v0.0.0-...-2ef9421 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError

func NewError(resource interface{}, column, err string) error

func RegisterCallbacks

func RegisterCallbacks(db *gorm.DB)

Types

type Error

type Error struct {
	Resource interface{}
	Column   string
	Message  string
}

func (Error) Error

func (err Error) Error() string

func (Error) Label

func (err Error) Label() string

Jump to

Keyboard shortcuts

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