Sign in
go
/
talks
/
fe698a2ad64e3802fea591da0cbeb039aa1cf846
/
.
/
content
/
2016
/
applicative
/
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)
}