How to create heap dump in golang when out of memory?

Viewed 1281

Is there a way in go to cause an application to write a heapdump to a file when it is out of memory?

I am looking for a global solution to the application.

0 Answers
Related