format

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: EUPL-1.2 Imports: 1 Imported by: 0

Documentation

Overview

package format is used internally to describe the format of an IBAN.

Index

Constants

View Source
const (
	NoMoreChar = iota + 1
	UppercaseAlphaChar
	AlphaChar
	ExpectedNumericChar
	ExpectedAlphaNumericChar
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Alpha

type Alpha int // (A-Z)

func (Alpha) Expected

func (Alpha) Expected() ExpectedCharType

func (Alpha) IndexInvalid

func (Alpha) IndexInvalid(s string) int

func (Alpha) Len

func (l Alpha) Len() int

type AlphaInsensitive

type AlphaInsensitive int // (a-z, A-Z)

func (AlphaInsensitive) Expected

func (AlphaInsensitive) IndexInvalid

func (AlphaInsensitive) IndexInvalid(s string) int

func (AlphaInsensitive) Len

func (l AlphaInsensitive) Len() int

type Column

type Column interface {
	Len() int
	Expected() ExpectedCharType
	IndexInvalid(s string) int // returns -1 if the string is valid
}

type ExpectedCharType added in v0.8.0

type ExpectedCharType int

func (ExpectedCharType) String added in v0.8.0

func (e ExpectedCharType) String() string

type Mixed

type Mixed int // (a-z, A-Z, 0-9)

func (Mixed) Expected

func (Mixed) Expected() ExpectedCharType

func (Mixed) IndexInvalid

func (Mixed) IndexInvalid(s string) int

func (Mixed) Len

func (l Mixed) Len() int

type Numeric

type Numeric int // (0-9)

func (Numeric) Expected

func (Numeric) Expected() ExpectedCharType

func (Numeric) IndexInvalid

func (Numeric) IndexInvalid(s string) int

func (Numeric) Len

func (l Numeric) Len() int

Jump to

Keyboard shortcuts

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