sk-matrix-project/app/wails/pkg/system/memory.go

14 lines
241 B
Go

package system
import "github.com/shirou/gopsutil/mem"
func GetVirtualMemory() *mem.VirtualMemoryStat {
stat, _ := mem.VirtualMemory()
return stat
}
func GetSwapMemory() *mem.SwapMemoryStat {
stat, _ := mem.SwapMemory()
return stat
}