rule

package
v0.0.0-...-799cd50 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RangeRule

type RangeRule struct {
	StartPosition int
	Length        int
	Format        RangeRuleType
}

func (*RangeRule) EndPos

func (r *RangeRule) EndPos() int

func (*RangeRule) StartPos

func (r *RangeRule) StartPos() int

func (*RangeRule) String

func (r *RangeRule) String() string

func (*RangeRule) Type

func (r *RangeRule) Type() string

type RangeRuleType

type RangeRuleType int
const (
	Digit RangeRuleType = iota
	UpperCaseLetters
	AlphaNumeric
)

func (RangeRuleType) String

func (r RangeRuleType) String() string

type Rule

type Rule interface {
	Type() string
	String() string
	StartPos() int
	EndPos() int
}

type StaticRule

type StaticRule struct {
	StartPosition int
	Value         string
}

func (*StaticRule) EndPos

func (s *StaticRule) EndPos() int

func (*StaticRule) StartPos

func (s *StaticRule) StartPos() int

func (*StaticRule) String

func (s *StaticRule) String() string

func (*StaticRule) Type

func (s *StaticRule) Type() string

func (*StaticRule) WriteTo

func (s *StaticRule) WriteTo(sb *strings.Builder)

Jump to

Keyboard shortcuts

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