model

package
v0.0.0-...-50e7ee4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Validator is preconfigured validator instance.
	Validator = validator.New()
)

Functions

func DecodeUUID

func DecodeUUID(str string) (*pgtype.UUID, error)

DecodeUUID decodes UUID from string

func DecodeUUIDs

func DecodeUUIDs(strs ...string) ([]pgtype.UUID, error)

DecodeUUIDs decodes multiple uuids from string and returns slice of decoded ids.

func Validate

func Validate(v interface{}) error

Validate performs struct validation and returns an error on failure.

Wraps Validator.Struct method and returns API-compatible error.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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