ucum

package
v0.0.0-...-e24673e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conv

func Conv(val *big.Int, from, to Unit) (*big.Int, error)

Types

type Converter

type Converter struct{}

func NewConverter

func NewConverter(from, to Unit) (*Converter, error)

func (*Converter) Conv

func (c *Converter) Conv(val *big.Int) (converted *big.Int, exact bool)

type Unit

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

Unit is a UCUM unit of measure.

func Normalize

func Normalize(unit Unit) Unit

func Parse

func Parse(unit []byte) (Unit, error)

func (*Unit) String

func (u *Unit) String() string

Directories

Path Synopsis
internal
data
Code generated; DO NOT EDIT.
Code generated; DO NOT EDIT.

Jump to

Keyboard shortcuts

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