示例#1
0
文件: time.go 项目: realm520/TestCode
func main() {
	fmt.Printf("Hello, world.  Sqrt(2) = %v\n", newmath.Sqrt(2))
	t := time.Now()
	switch {
	case t.Hour() < 12:
		fmt.Println("Good morning!")
	case t.Hour() < 17:
		fmt.Println("Good afternoon.")
	default:
		fmt.Println("Good evening.")
	}
	var i = 3
	fmt.Println("V: ", i*3*3)
}
示例#2
0
文件: hello.go 项目: shimdh/learn-go
func main() {
	fmt.Printf("hello, world Sqrt(2) = %v\n", newmath.Sqrt(2))
}
示例#3
0
func main() {
	fmt.Println(newmath.Sqrt(2))
}