このプラグインも systemstat パッケージを利用させて頂きます。 ... (snip) ... // Buffers Cached MemTotal MemUsed MemFree SwapTotal SwapUsed SwapFree time.Time // {80888 648992 2056668 1881204 175464 1438004 476 1437528 2014-12-30 09:57:09.298455307 +0900 JST} mem := systemstat.GetMemSample() // 純粋な空き容量を算出 mem_free_uint := (mem.Buffers + mem.Cached + mem.MemFree) // uint64 => String => float64 mem_free, _ := strconv.ParseFl