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

This commit is contained in:
刘祥超
2021-12-29 10:53:59 +08:00
parent f930705fd7
commit 4ffc619aad
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())
}