genconv

package
v0.0.0-...-0898015 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package genconv defines types, constants, and conversions of units

Package genconv defines types, constants, and conversions of units

Package genconv defines types, constants, and conversions of units

Package genconv defines types, constants, and conversions of units

Package genconv defines types, constants, and conversions of units

Package genconv defines types, constants, and conversions of units

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Celsius

type Celsius float64
const (
	AbsoluteZeroC Celsius = -237.15
	FreezingC     Celsius = 0.0
	BoilingC      Celsius = 100.0
)

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

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

func MToFt

func MToFt(m Meter) Foot

MToFt converts a meters to feet

func (Foot) String

func (ft Foot) String() string

type Kelvin

type Kelvin float64

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

func LbToKg

func LbToKg(lb Pound) Kilogram

LbToKg converts a pounds to kilograms

func (Kilogram) String

func (kg Kilogram) String() string

type Meter

type Meter float64

func FtToM

func FtToM(ft Foot) Meter

FtToM converts feet to meters

func (Meter) String

func (m Meter) String() string

type Pound

type Pound float64

func KgToLb

func KgToLb(kg Kilogram) Pound

KgToLb converts a kilograms to pounds

func (Pound) String

func (lb Pound) String() string

Jump to

Keyboard shortcuts

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