3 ms·
Does panic() in Go give you source code line numbers and file names? As far as I'm concerned, assert() has two jobs, both essential: Killing the program AND gi
by msla 8y ago
Does panic() in Go give you source code line numbers and file names?
As far as I'm concerned, assert() has two jobs, both essential: Killing the program AND giving an error message which gives the developers knowledge of precisely where the deadly assert() is. Doing only one of those things leaves the job undone.
- khc 8y agopanic gives you line number and stacktrace