reading

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reading

type Reading struct {
	Value float64
	Valid bool
}

Reading wraps a float Value which can be valid or invalid.

func New

func New(value float64) Reading

New creates a reading and checks if value is NaN.

func NewInvalid

func NewInvalid() Reading

NewInvalid crates a reading with 'valid' value set to false.

Jump to

Keyboard shortcuts

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