How can I get the total amount of memory/RAM attached to a system in Go? I want to use native code only if possible. I have found a library that wraps linux sysinfo command. Is there a more elegant way?
2条回答 默认 最新
doukong1901 2015-05-04 01:28关注Besides runtime.MemStats you can use gosigar to monitor system memory.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报