代码拉取完成,页面将自动刷新
//++++++++++++++++++++++++++++++++++++++++
// 《Go Web编程实战派从入门到精通》源码
//++++++++++++++++++++++++++++++++++++++++
// Author:廖显东(ShirDon)
// Blog:https://www.shirdon.com/
// 仓库地址:https://gitee.com/shirdonl/goWebActualCombat
// 仓库地址:https://github.com/shirdonl/goWebActualCombat
//++++++++++++++++++++++++++++++++++++++++
package main
import (
"fmt"
"time"
)
func main() {
type Direction int
const (
North Direction = iota
East
South
West
)
//var (
// age int
// name string
// balance []float32
//)
const pi = 3.14159
//const (
// e = 2.7182818
// pi = 3.1415926
//)
const noTime time.Duration = 0
const timeout = 5 * time.Minute
fmt.Printf("%T %[1]v\n", noTime) // "time.Duration 0"
fmt.Printf("%T %[1]v\n", timeout) // "time.Duration 5m0s"
fmt.Printf("%T %[1]v\n", time.Minute) // "time.Duration 1m0s"
//var x float32 = math.Pi
//var y float64 = math.Pi
//var z complex128 = math.Pi
//const Pi64 float64 = math.Pi
//var x float32 = float32(Pi64)
//var y float64 = Pi64
//var z complex128 = complex128(Pi64)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。