value

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value string

Value

Value represents a value that was read out from a device.

swagger:model

func Empty added in v0.1.4

func Empty() Value

Empty returns the an empty value.

func New

func New(i interface{}) Value

New creates a new value

func (*Value) Bool

func (v *Value) Bool() (bool, error)

Bool returns the value as a bool

func (*Value) Cmp added in v0.1.2

func (v *Value) Cmp(val Value) (int, error)

func (*Value) Float64

func (v *Value) Float64() (float64, error)

Float64 returns the value as a float 64

func (*Value) Int

func (v *Value) Int() (int, error)

Int returns the value as an int

func (*Value) IsEmpty added in v0.1.2

func (v *Value) IsEmpty() bool

func (*Value) String

func (v *Value) String() string

String returns the value as a string

Jump to

Keyboard shortcuts

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