delete all uses of panicln by rewriting them using panic or,

in the tests, println+panic.
gofmt some tests too.

R=rsc
CC=golang-dev
https://golang.org/cl/741041
This commit is contained in:
Rob Pike 2010-03-24 16:46:53 -07:00
parent acfd6d5f05
commit 325cf8ef21
79 changed files with 3007 additions and 2019 deletions

View file

@ -111,7 +111,7 @@ func valueToString(val Value) string {
v := val
return typ.String() + "(" + strconv.Itoa64(int64(v.Get())) + ")"
default:
panicln("valueToString: can't print type ", typ.String())
panic("valueToString: can't print type " + typ.String())
}
return "valueToString: can't happen"
}