argonone

package
v3.0.33 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value added in v3.0.3

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

Value represents a value which changes over time once the final value has been established, like a Schmitt trigger

func NewValueWithDelta added in v3.0.3

func NewValueWithDelta(d time.Duration) *Value

Construct a value which remains constant for at least d time duration.

func (*Value) Get added in v3.0.3

func (v *Value) Get() (interface{}, bool)

Get the current value

func (*Value) Set added in v3.0.3

func (v *Value) Set(new interface{}) (interface{}, bool)

Set a new value, and return the current value

Jump to

Keyboard shortcuts

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