diff --git a/system/memory.go b/system/memory.go new file mode 100644 index 0000000..4b2d813 --- /dev/null +++ b/system/memory.go @@ -0,0 +1,19 @@ +// Package system... +// +// Description : system... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2021-10-12 7:07 下午 +package system + +import "github.com/shirou/gopsutil/mem" + +// GetMemoryInfo 获取内存信息 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 7:07 下午 2021/10/12 +func GetMemoryInfo() (*mem.VirtualMemoryStat, error) { + return mem.VirtualMemory() +}