Sign in
go
/
talks
/
7426e6461029fb2f2fec878911ca8cca745dd7af
/
.
/
content
/
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)
}