package
0.0.0-20201207124253-3daee643afc9
Repository: https://github.com/system18188/jupiter-plugin.git
Documentation: pkg.go.dev

# README

Baked-in Validations

Fields:

TagDescription
eqcsfield字段等于另一个字段(相对)
eqfield领域等于另一个领域
fieldcontainsNOT DOCUMENTED IN doc.go
fieldexcludesNOT DOCUMENTED IN doc.go
gtcsfieldField Greater Than Another Relative Field
gtecsfieldField Greater Than or Equal To Another Relative Field
gtefieldField Greater Than or Equal To Another Field
gtfieldField Greater Than Another Field
ltcsfieldLess Than Another Relative Field
ltecsfieldLess Than or Equal To Another Relative Field
ltefieldLess Than or Equal To Another Field
ltfieldLess Than Another Field
necsfieldField Does Not Equal Another Field (relative)
nefieldField Does Not Equal Another Field

Network:

TagDescription
cidrClassless Inter-Domain Routing CIDR
cidrv4Classless Inter-Domain Routing CIDRv4
cidrv6Classless Inter-Domain Routing CIDRv6
datauriData URL
fqdnFull Qualified Domain Name (FQDN)
hostnameHostname RFC 952
hostname_portHostPort
hostname_rfc1123Hostname RFC 1123
ipInternet Protocol Address IP
ip4_addrInternet Protocol Address IPv4
ip6_addrInternet Protocol Address IPv6
ip_addrInternet Protocol Address IP
ipv4Internet Protocol Address IPv4
ipv6Internet Protocol Address IPv6
macMedia Access Control Address MAC
tcp4_addrTransmission Control Protocol Address TCPv4
tcp6_addrTransmission Control Protocol Address TCPv6
tcp_addrTransmission Control Protocol Address TCP
udp4_addrUser Datagram Protocol Address UDPv4
udp6_addrUser Datagram Protocol Address UDPv6
udp_addrUser Datagram Protocol Address UDP
unix_addrUnix domain socket end point Address
uriURI String
urlURL String
url_encodedURL Encoded
urn_rfc2141Urn RFC 2141 String

Strings:

TagDescription
alphaAlpha Only
alphanumAlphanumeric
alphanumunicodeAlphanumeric Unicode
alphaunicodeAlpha Unicode
asciiASCII
containsContains
containsanyContains Any
containsruneContains Rune
endswithEnds With
lowercaseLowercase
multibyteMulti-Byte Characters
numberNOT DOCUMENTED IN doc.go
numericNumeric
printasciiPrintable ASCII
startswithStarts With
uppercaseUppercase

Format:

TagDescription
base64Base64 String
base64urlBase64URL String
btc_addrBitcoin Address
btc_addr_bech32Bitcoin Bech32 Address (segwit)
datetimeDatetime
e164e164 formatted phone number
emailE-mail String
eth_addrEthereum Address
hexadecimalHexadecimal String
hexcolorHexcolor String
hslHSL String
hslaHSLA String
htmlHTML Tags
html_encodedHTML Encoded
isbnInternational Standard Book Number
isbn10International Standard Book Number 10
isbn13International Standard Book Number 13
jsonJSON
latitudeLatitude
longitudeLongitude
rgbRGB String
rgbaRGBA String
ssnSocial Security Number SSN
uuidUniversally Unique Identifier UUID
uuid3Universally Unique Identifier UUID v3
uuid3_rfc4122Universally Unique Identifier UUID v3 RFC4122
uuid4Universally Unique Identifier UUID v4
uuid4_rfc4122Universally Unique Identifier UUID v4 RFC4122
uuid5Universally Unique Identifier UUID v5
uuid5_rfc4122Universally Unique Identifier UUID v5 RFC4122
uuid_rfc4122Universally Unique Identifier UUID RFC4122

Comparisons:

TagDescription
eqEquals
gtGreater than
gteGreater than or equal
ltLess Than
lteLess Than or Equal
neNot Equal

Other:

TagDescription
dirDirectory
endswithEnds With
excludesExcludes
excludesallExcludes All
excludesruneExcludes Rune
fileFile path
isdefaultIs Default
lenLength
maxMaximum
minMinimum
oneofOne Of
requiredRequired
required_ifRequired If
required_unlessRequired Unless
required_withRequired With
required_with_allRequired With All
required_withoutRequired Without
required_without_allRequired Without All
excluded_withExcluded With
excluded_with_allExcluded With All
excluded_withoutExcluded Without
excluded_without_allExcluded Without All
uniqueUnique

Benchmarks

# Functions

Default returns the appropriate Binding instance based on the HTTP method and the content type.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.
Content-Type MIME of the most common data formats.

# Variables

No description provided by the author
No description provided by the author
EnableDecoderDisallowUnknownFields is used to call the DisallowUnknownFields method on the JSON Decoder instance.
EnableDecoderUseNumber is used to call the UseNumber method on the JSON Decoder instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
Validator is the default validator which implements the StructValidator interface.
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
These implement the Binding interface and can be used to bind the data present in the request to struct instances.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Binding describes the interface which needs to be implemented for binding the data present in the request such as JSON request body, query parameters or the form POST.
BindingBody adds BindBody method to Binding.
BindingUri adds BindUri method to Binding.
Scanner is an interface used by Scan.
StructValidator is the minimal interface which needs to be implemented in order for it to be used as the validator engine for ensuring the correctness of the request.

# Type aliases

RegisterFormBindType 表单绑定类型注册(表单值) 付值,错误.