Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
package binding
Bool
BoolList
BoolTree
Bytes
BytesList
BytesTree
DataItem
DataList
DataListener
DataMap
DataTree
ExternalBool
ExternalBoolList
ExternalBoolTree
ExternalBytes
ExternalBytesList
ExternalBytesTree
ExternalFloat
ExternalFloatList
ExternalFloatTree
ExternalInt
ExternalIntList
ExternalIntTree
ExternalRune
ExternalRuneList
ExternalRuneTree
ExternalString
ExternalStringList
ExternalStringTree
ExternalUntyped
ExternalUntypedList
ExternalUntypedMap
ExternalUntypedTree
ExternalURI
ExternalURIList
ExternalURITree
Float
FloatList
FloatTree
Int
IntList
IntTree
Rune
RuneList
RuneTree
String
StringList
StringTree
Struct
Untyped
UntypedList
UntypedMap
UntypedTree
URI
URIList
URITree
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "validation"
validation
import "fyne.io/fyne/v2/data/validation"
Package validation provides validation for data inside widgets.
Usage
func NewAllStrings
func NewAllStrings(validators ...fyne.StringValidator) fyne.StringValidator
NewAllStrings creates a validator that requires all of the passed string validators to pass. In short, it combines multiple string validators into one.
Since:
2.2
func NewRegexp
func NewRegexp(regexpstr, reason string) fyne.StringValidator
NewRegexp creates a new validator that uses regular expression parsing. The validator will return nil if valid, otherwise returns an error with a reason text.
Since:
1.4
func NewTime
func NewTime(format string) fyne.StringValidator
NewTime creates a new validator that verifies times using time.Parse. The validator will return nil if valid, otherwise returns an error with a reason text. The reference time for the format: Mon Jan 2 15:04:05 -0700 MST 2006. See time.Parse() for more information about the reference time: https://pkg.go.dev/time#Parse
Since:
2.1