Sign in
go
/
talks
/
137c9c6e4344a3f60c8ac9d083287a8b409650cc
/
.
/
2015
/
go-for-java-programmers
/
panic.go
blob: 6ae78e8245ced81d6d2fe22d7df18e4974b8ff45 [
file
] [
log
] [
blame
]
// +build OMIT
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)
}