Documentation ¶
Overview ¶
Package tempconv converts the temperate between different scales:
- Celsius
- Fahrenheit
- Kelvin
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Celsius ¶
type Celsius float64
func FToC ¶
func FToC(f Fahrenheit) Celsius
FToC converts temperature from Fahrenheit to Celsius C = F - 32 * (5/9)
type Fahrenheit ¶
type Fahrenheit float64
func CToF ¶
func CToF(c Celsius) Fahrenheit
CToF converts temperature from Celsius to Fahrenheit F = (9/5)C + 32
func (Fahrenheit) String ¶
func (f Fahrenheit) String() string
Click to show internal directories.
Click to hide internal directories.