validation

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: BSD-3-Clause Imports: 4 Imported by: 58

Documentation

Overview

Package validation provides validation for data inside widgets

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 added in v2.1.0

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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