float

package
v0.0.0-...-9a728c2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp(o *Opt, min, max float64) func(*Opt)

Types

type Hook

type Hook func(*Opt) error

type Opt

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

func New

func New(m meta.Data, h ...Hook) (o *Opt)

func (*Opt) Expanded

func (o *Opt) Expanded() (s string)

func (*Opt) FromString

func (o *Opt) FromString(s string) (e error)

func (*Opt) FromValue

func (o *Opt) FromValue(v float64) *Opt

func (*Opt) Meta

func (o *Opt) Meta() meta.Metadata

func (*Opt) Path

func (o *Opt) Path() (p path.Path)

func (*Opt) RunHooks

func (o *Opt) RunHooks() (e error)

func (*Opt) SetExpanded

func (o *Opt) SetExpanded(s string)

func (*Opt) SetPath

func (o *Opt) SetPath(p path.Path)

func (*Opt) String

func (o *Opt) String() (s string)

func (*Opt) ToOption

func (o *Opt) ToOption() config.Option

func (*Opt) Type

func (o *Opt) Type() meta.Type

func (*Opt) Value

func (o *Opt) Value() (c config.Concrete)

Jump to

Keyboard shortcuts

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