tempconv

package
v0.0.0-...-0d7918f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package tempconv performs Celsius and Fahrenheit conversions.

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 = -273.15
	FreezingC     Celsius = 0
	BoilingC      Celsius = 100
)

func FToC

func FToC(f Fahrenheit) Celsius

FToC converts a Farenheit temperature to Celsius.

func KToC

func KToC(k Kevin) Celsius

KToC converts a Kevin 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 Farenheit.

func (Fahrenheit) String

func (f Fahrenheit) String() string

type Kevin

type Kevin float64

func (Kevin) String

func (k Kevin) String() string

Jump to

Keyboard shortcuts

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