types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boolean

type Boolean struct {
	// contains filtered or unexported fields
}

func (*Boolean) GetError

func (t *Boolean) GetError() error

func (*Boolean) IsValid

func (t *Boolean) IsValid() bool

func (*Boolean) Name

func (t *Boolean) Name() string

func (*Boolean) Value

func (t *Boolean) Value() string

type Color

type Color struct {
	// contains filtered or unexported fields
}

func (*Color) GetError

func (t *Color) GetError() error

func (*Color) IsValid

func (t *Color) IsValid() bool

func (*Color) Name

func (t *Color) Name() string

func (*Color) Value

func (t *Color) Value() string

type Enum

type Enum struct {
	// contains filtered or unexported fields
}

func (*Enum) GetError

func (t *Enum) GetError() error

func (*Enum) IsValid

func (t *Enum) IsValid() bool

func (*Enum) Name

func (t *Enum) Name() string

func (*Enum) Value

func (t *Enum) Value() string

type NInteger

type NInteger struct {
	// contains filtered or unexported fields
}

func (*NInteger) GetError

func (t *NInteger) GetError() error

func (*NInteger) IsValid

func (t *NInteger) IsValid() bool

func (*NInteger) Name

func (t *NInteger) Name() string

func (*NInteger) Value

func (t *NInteger) Value() string

type NString

type NString struct {
	// contains filtered or unexported fields
}

func (*NString) GetError

func (t *NString) GetError() error

func (*NString) IsValid

func (t *NString) IsValid() bool

func (*NString) Name

func (t *NString) Name() string

func (*NString) Value

func (t *NString) Value() string

type Type

type Type interface {
	Name() string
	Value() string
	IsValid() bool
	GetError() error
}

func NewBoolean

func NewBoolean(value string) Type

func NewColor

func NewColor(value string) Type

func NewEnum

func NewEnum(value string, matchers []string, regex *regexp.Regexp) Type

func NewNInteger

func NewNInteger(value string) Type

func NewNString

func NewNString(value string) Type

func NewUnit

func NewUnit(value string, units []string, args []string, regex *regexp.Regexp) Type

type TypeConstructor

type TypeConstructor func(value string) Type

func InitializeType

func InitializeType(typeConfig string) (TypeConstructor, error)

func NewBooleanFactory

func NewBooleanFactory(_ string) (TypeConstructor, error)

func NewColorFactory

func NewColorFactory(_ string) (TypeConstructor, error)

func NewEnumFactory

func NewEnumFactory(config string) (TypeConstructor, error)

func NewNIntegerFactory

func NewNIntegerFactory(_ string) (TypeConstructor, error)

func NewNStringFactory

func NewNStringFactory(_ string) (TypeConstructor, error)

func NewUnitFactory

func NewUnitFactory(config string) (TypeConstructor, error)

type TypeFactory

type TypeFactory func(typeConfig string) (TypeConstructor, error)

type Unit

type Unit struct {
	// contains filtered or unexported fields
}

func (*Unit) GetError

func (t *Unit) GetError() error

func (*Unit) IsValid

func (t *Unit) IsValid() bool

func (*Unit) Name

func (t *Unit) Name() string

func (*Unit) Value

func (t *Unit) Value() string

Jump to

Keyboard shortcuts

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