Re-struct pkg/api, pkg/database

This commit is contained in:
2021-12-07 00:19:05 +08:00
parent 546385a484
commit 83f2b76cbc
25 changed files with 1350 additions and 1192 deletions

12
pkg/tmpfs/tmpfs_test.go Normal file
View File

@@ -0,0 +1,12 @@
package tmpfs
import "testing"
func TestTmpfs(t *testing.T) {
t.Log("Starting ...")
tmpfs := NewTmpfs()
tmpfs.FileLifeTime = 1
tmpfs.Record("/tmp/testfile")
t.Log(tmpfs.record)
tmpfs.wg.Wait()
}