Sign in
go
/
talks
/
2f810f24ab988b98107bc78d8a71647ce9fbf085
/
.
/
2015
/
go-for-java-programmers
/
panic.go
blob: f9f0a2109d47bdf0fba986651cd3a7ce85c26d47 [
file
] [
log
] [
blame
]
package main
import "fmt"
// div divides n by d and returns the quotient and remainder.
func div(n, d int) (q, r int) {
return n / d, n % d
}
func main() {
quot, rem := div(4, 0)
// HL
fmt.Println(quot, rem)
}