将获取系统内存函数放入到utils中

This commit is contained in:
GoEdgeLab
2021-12-29 10:53:59 +08:00
parent 1a22d2959d
commit 42710c4e36
3 changed files with 12 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package utils
import "testing"
func TestSystemMemoryGB(t *testing.T) {
t.Log(SystemMemoryGB())
t.Log(SystemMemoryGB())
t.Log(SystemMemoryGB())
}