Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (10 sloc) 0.272 kb
package go_koans
func divideFourBy(i int) int {
return 4 / i
}
const __divisor__ = 0
func aboutPanics() {
assert(__delete_me__) // panics are exceptional errors at runtime
n := divideFourBy(__divisor__)
assert(n == 2) // panics are exceptional errors at runtime
}
Jump to Line
Something went wrong with that request. Please try again.