builtin

package module
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 21 Imported by: 1

README

builtin

builtin 是内置注册包,用于补充默认能力与基础注册项。

Documentation

Index

Constants

View Source
const (
	JSON   = infra.JSON
	XML    = infra.XML
	GOB    = infra.GOB
	TOML   = infra.TOML
	DIGIT  = infra.DIGIT
	DIGITS = infra.DIGITS
	TEXT   = infra.TEXT
	TEXTS  = infra.TEXTS
)

Variables

This section is empty.

Functions

func Bool

func Bool(require bool, def Any, name string, exts ...Any) Var

func Bools

func Bools(require bool, def Any, name string, exts ...Any) Var

func Datetime

func Datetime(require bool, def Any, name string, exts ...Any) Var

func Datetimes

func Datetimes(require bool, def Any, name string, exts ...Any) Var

func DecryptDIGIT added in v0.12.0

func DecryptDIGIT(v string) (int64, error)

func DecryptDIGITS added in v0.12.0

func DecryptDIGITS(v string) ([]int64, error)

func DecryptTEXT added in v0.12.0

func DecryptTEXT(v string) (string, error)

func DecryptTEXTS added in v0.12.0

func DecryptTEXTS(v string) ([]string, error)

func Define added in v0.8.3

func Define(kind string, require bool, def Any, name string, exts ...Any) Var

Define creates a Var with common fields.

func Email

func Email(require bool, def Any, name string, exts ...Any) Var

func EncryptDIGIT added in v0.12.0

func EncryptDIGIT(v int64) (string, error)

func EncryptDIGITS added in v0.12.0

func EncryptDIGITS(v []int64) (string, error)

func EncryptTEXT added in v0.12.0

func EncryptTEXT(v string) (string, error)

func EncryptTEXTS added in v0.12.0

func EncryptTEXTS(v []string) (string, error)

func Enum

func Enum(require bool, def Any, name string, options Map, exts ...Any) Var

func Enums

func Enums(require bool, def Any, name string, options Map, exts ...Any) Var

func Float

func Float(require bool, def Any, name string, exts ...Any) Var

func FloatOrder

func FloatOrder(require bool, def Any, name string, exts ...Any) Var

func Floats

func Floats(require bool, def Any, name string, exts ...Any) Var

func Int

func Int(require bool, def Any, name string, exts ...Any) Var

func IntGroup

func IntGroup(require bool, def Any, name string, exts ...Any) Var

func IntKey

func IntKey(require bool, def Any, name string, exts ...Any) Var

func IntOrder

func IntOrder(require bool, def Any, name string, exts ...Any) Var

func Ints

func Ints(require bool, def Any, name string, exts ...Any) Var

func Json

func Json(require bool, def Any, name string, children Vars, exts ...Any) Var

func Mobile

func Mobile(require bool, def Any, name string, exts ...Any) Var

func ObjectID added in v0.8.3

func ObjectID(require bool, def Any, name string, exts ...Any) Var

func Password

func Password(require bool, def Any, name string, exts ...Any) Var

func String

func String(require bool, def Any, name string, exts ...Any) Var

func StringKey

func StringKey(require bool, def Any, name string, exts ...Any) Var

func StringQuery

func StringQuery(require bool, def Any, name string, exts ...Any) Var

func Strings

func Strings(require bool, def Any, name string, exts ...Any) Var

Types

type Codec added in v0.8.1

type Codec = infra.Codec

type Mime added in v0.8.1

type Mime = infra.Mime

type Mimes added in v0.8.1

type Mimes = infra.Mimes

type Regular added in v0.8.1

type Regular = infra.Regular

type Regulars added in v0.8.1

type Regulars = infra.Regulars

type Type added in v0.8.1

type Type = infra.Type

Jump to

Keyboard shortcuts

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