rule

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Required

type Required struct {
}

func (Required) Message

func (r Required) Message() string

func (Required) Passes

func (r Required) Passes(attribute string, input interface{}) (success bool, skipAll bool)

type Rule

type Rule interface {
	Passes(attribute string, input interface{}) (success bool, skipAll bool)
	Message() string
}

Jump to

Keyboard shortcuts

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