builtin

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyDataType

type AnyDataType struct{}

AnyDataType is what its name tells

func (AnyDataType) Build

func (AnyDataType) Build(typeName string, registry ...datatype.T) datatype.Validator

Build returns the validator

func (AnyDataType) Type added in v0.3.1

func (AnyDataType) Type() reflect.Type

Type returns the type of data

type BoolDataType

type BoolDataType struct{}

BoolDataType is what its name tells

func (BoolDataType) Build

func (BoolDataType) Build(typeName string, registry ...datatype.T) datatype.Validator

Build returns the validator

func (BoolDataType) Type added in v0.3.1

func (BoolDataType) Type() reflect.Type

Type returns the type of data

type FloatDataType

type FloatDataType struct{}

FloatDataType is what its name tells

func (FloatDataType) Build

func (FloatDataType) Build(typeName string, registry ...datatype.T) datatype.Validator

Build returns the validator

func (FloatDataType) Type added in v0.3.1

func (FloatDataType) Type() reflect.Type

Type returns the type of data

type IntDataType

type IntDataType struct{}

IntDataType is what its name tells

func (IntDataType) Build

func (IntDataType) Build(typeName string, registry ...datatype.T) datatype.Validator

Build returns the validator

func (IntDataType) Type added in v0.3.1

func (IntDataType) Type() reflect.Type

Type returns the type of data

type StringDataType

type StringDataType struct{}

StringDataType is what its name tells

func (StringDataType) Build

func (s StringDataType) Build(typeName string, registry ...datatype.T) datatype.Validator

Build returns the validator. availables type names are : `string`, `string(length)` and `string(minLength, maxLength)`.

func (StringDataType) Type added in v0.3.1

func (StringDataType) Type() reflect.Type

Type returns the type of data

type UintDataType

type UintDataType struct{}

UintDataType is what its name tells

func (UintDataType) Build

func (UintDataType) Build(typeName string, registry ...datatype.T) datatype.Validator

Build returns the validator

func (UintDataType) Type added in v0.3.1

func (UintDataType) Type() reflect.Type

Type returns the type of data

Jump to

Keyboard shortcuts

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