types

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

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atom

type Atom struct {
	Code      string
	Kind      string
	Magnitude *big.Rat
	Metric    bool
}

type ComponentKey

type ComponentKey struct {
	AtomCode   string
	Annotation string
}

type Unit

type Unit struct {
	Orig       string
	Components map[ComponentKey]int // <unit atom, annotation> -> exponent
	Coeff      *big.Rat
}

Unit is a UCUM unit of measure.

func (*Unit) CanonicalString

func (u *Unit) CanonicalString() string

Jump to

Keyboard shortcuts

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