Sign in
go
/
talks
/
5918bb7db31e72019088bf2822e596eec2e653eb
/
.
/
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)
}