Ejemplo n.º 1
0
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)
}
Ejemplo n.º 2
0
func main() {
	fmt.Printf("hello, world Sqrt(2) = %v\n", newmath.Sqrt(2))
}
Ejemplo n.º 3
0
func main() {
	fmt.Println(newmath.Sqrt(2))
}