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) }