Sign in
go
/
website
/
b1f8652375c03c0504e12ca6fbb024f6c0b12b9e
/
.
/
_content
/
talks
/
2015
/
go-for-java-programmers
/
panic.go
blob: d2c935f1a218c057daeb22236ce59c41227af0bb [
file
] [
log
] [
blame
]
// +build ignore,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)
}