package
Version:
v0.0.0-...-0b8e3a9
Opens a new window with list of versions in this module.
Published: Oct 21, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
下面的声明语句,Celsius类型的参数c出现在了函数名的前面,
表示声明的是Celsius类型的一个名叫String的方法,该方法返回该类型对象c带着°C温度单位的字符串:
c1 := FtoC(212.0)
fmt.Println(c1.String())
相当于添加了扩展
Source Files
¶
Click to show internal directories.
Click to hide internal directories.