go: collect and print memstats