tempconv

package
v0.0.0-...-0382bd9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 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 // 摄氏温度

命名两个基础类型的别名

const (
	AbsoluteZeroC Celsius = -273.15 // 绝对零度
	FreezingC     Celsius = 0       // 冰点温度
	BoilingC      Celsius = 100     // 沸水温度
)

func FToC

func FToC(f Fahrenheit) Celsius

func (Celsius) String

func (c Celsius) String() string

为 Celsius 类型增加方法

type Fahrenheit

type Fahrenheit float64 // 华氏温度

func CToF

func CToF(c Celsius) Fahrenheit

Jump to

Keyboard shortcuts

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