examples

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Business

type Business struct {
	Title       string
	Description string
	FoundAt     time.Time
}

func (*Business) Validations added in v0.0.2

func (b *Business) Validations() rapidval.P

type Translator

type Translator struct {
	// contains filtered or unexported fields
}

func NewTranslator

func NewTranslator() *Translator

func (*Translator) Translate

func (t *Translator) Translate(err *rapidval.ValidationError) string

type User

type User struct {
	FirstName string
	LastName  string
	Email     string
	Password  string
	Age       int
}

func (*User) Validations added in v0.0.2

func (u *User) Validations() rapidval.P

Jump to

Keyboard shortcuts

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