Documentation ¶
Overview ¶
Add types, constants, and functions to `tempconv` for processing temperatures in the Kelvin scale, where Kelvin is -273.15°C and a difference of 1K has the same magnitude as 1°C.
Add types, constants, and functions to `tempconv` for processing temperatures in the Kelvin scale, where Kelvin is -273.15°C and a difference of 1K has the same magnitude as 1°C.
Index ¶
Constants ¶
View Source
const ( AbsoluteZeroC Celsius = -273.15 FreezingC Celsius = 0 BoilingC Celsius = 100 CelsiusK Celsius = 273.15 KelvinC Kelvin = 273.15 KelvinF Kelvin = 459.67 FahrenheitK Fahrenheit = 459.67 )
Conversion constants (some could be more generic to support two types)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fahrenheit ¶
type Fahrenheit float64
Fahrenheit temperature type
func (Fahrenheit) String ¶
func (f Fahrenheit) String() string
Adds custom String() formatting to Fahrenheit
Click to show internal directories.
Click to hide internal directories.