3 ms·The runtime package allows you to grab the current trace, you can just pop the last frame off and print that.by bbatha 7y agoThe runtime package allows you to grab the current trace, you can just pop the last frame off and print that.everdev 7y agoTrue. The only other challenge is that in production software you rarely want to call panic()IanS5 7y agoAs another comment mentioned you can just use build tags to make assert a no-op in release builds