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