echo-bind-validate

command module
v0.0.0-...-141310f Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: MIT Imports: 2 Imported by: 0

README

echo-bind-validate

Bind and Validate package for Echo Labstack with flexible struct tags scheme

Usage
// Employee model struct
type Employee struct {
	ID                 *int64     `json:"id,omitempty" db:"employee_id" valid:"-"`
	First              *string    `json:"first,omitempty" db:"employee_first" valid:"-" create:"required"`
	Last               *string    `json:"last,omitempty" db:"employee_last" valid:"-" create:"required"`
	Nick               *string    `json:"nick,omitempty" db:"employee_nick" valid:"length(4|20),-" create:"required"`
	Email              *string    `json:"email,omitempty" db:"employee_email" valid:"email,-" create:"required"`
	PasswordMustChange *string    `json:"password_must_change,omitempty" db:"password_must_change" valid:"-"`
	ChromeKey          *string    `json:"chrome_key,omitempty" db:"chrome_key" valid:"-"`
}

Sentry

go get github.com/getsentry/raven-go

To use raven-go, you’ll need to import the raven package, then initilize your DSN globally. If you specify the SENTRY_DSN environment variable, this will be done automatically for you.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package bindvalidate is package of validators and sanitizers for strings, structs and collections.
Package bindvalidate is package of validators and sanitizers for strings, structs and collections.
Package govalidator is package of validators and sanitizers for strings, structs and collections.
Package govalidator is package of validators and sanitizers for strings, structs and collections.

Jump to

Keyboard shortcuts

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