conv

package
v0.0.0-...-686c690 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.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 Celsius

type Celsius float64

Celsius ...

func FToC

func FToC(f Fahrenheit) Celsius

FToC converts a Fahrenheit temperature to Celsius.

func KToC

func KToC(k Kelvin) Celsius

KToC converts a Kelvin temperature to Celsius.

func (Celsius) String

func (c Celsius) String() string

type Fahrenheit

type Fahrenheit float64

Fahrenheit ...

func CToF

func CToF(c Celsius) Fahrenheit

CToF converts a Celsius temperature to Fahrenheit.

func KToF

func KToF(k Kelvin) Fahrenheit

KToF converts a Kelvin temperature to Fahrenheit.

func (Fahrenheit) String

func (f Fahrenheit) String() string
type Foot float64

Foot ..

func MToF

func MToF(m Meter) Foot

MToF converts Foot to Meter

func (Foot) String

func (f Foot) String() string

type Kelvin

type Kelvin float64

Kelvin ...

func CToK

func CToK(c Celsius) Kelvin

CToK converts a Celsius temperature to Kelvin.

func FToK

func FToK(f Fahrenheit) Kelvin

FToK converts a Fahrenheit temperature to Kelvin.

func (Kelvin) String

func (k Kelvin) String() string

type Kilogram

type Kilogram float64

Kilogram ...

func PToK

func PToK(p Pound) Kilogram

PToK converts Pound to Kilogram

func (Kilogram) String

func (k Kilogram) String() string

type Meter

type Meter float64

Meter ..

func FToM

func FToM(f Foot) Meter

FToM converts Meter to Foot

func (Meter) String

func (m Meter) String() string

type Pound

type Pound float64

Pound ...

func KToP

func KToP(k Kilogram) Pound

KToP converts Kilogram to Pound

func (Pound) String

func (p Pound) String() string

Jump to

Keyboard shortcuts

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