Search Apps Documentation Source Content File Folder Download Copy Actions Download

panicvictim.gno

0.19 Kb · 12 lines
 1package panicvictim
 2
 3import "strconv"
 4
 5var value = 0
 6
 7func SetAndPanic(v int) {
 8	value = v
 9	panic("deliberate panic after state write")
10}
11
12func Render(_ string) string { return strconv.Itoa(value) }