config

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitValidatorConfig

func InitValidatorConfig(filename string)

Types

type ValidatorConf

type ValidatorConf struct {
	Name        string  `json:",optional"`
	MinLength   *int64  `json:",optional"`
	MaxLength   *int64  `json:",optional"`
	Pattern     *string `json:",optional"`
	ErrTemplate string  `json:",optional"`
}

func GetValidatorByFormat

func GetValidatorByFormat(format string) *ValidatorConf

Jump to

Keyboard shortcuts

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