This minor mode displays Go escape analysis information inline with your code. It runs the Go compiler with escape analysis flags and adds the results as annotations to the relevant lines in the buffer.
(require 'go-escape-analysis-mode)
Turn on the minor mode in any Go buffer to see variable escapes and variables moved to heap.