tempconvplus

package
v0.0.0-...-13c1b31 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT 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

将变量的声明、对应的常量,还有方法都放到当前tempconv.go的源文件中

const (
	AbsoluteZeroC Celsius = -273.15
	FreezingC     Celsius = 0
	BoilingC      Celsius = 100
)

func FToC

func FToC(f Fahrenheit) Celsius

FToC converts a Fahrenheit 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 (Fahrenheit) String

func (f Fahrenheit) String() string

Jump to

Keyboard shortcuts

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