[agent-operator]-无聊的更新内容

This commit is contained in:
zeaslity
2024-12-02 18:04:13 +08:00
parent 88cb1e1bb1
commit 8f5f85826c
70 changed files with 45926 additions and 34521 deletions

1
agent-tmp/go.mod Normal file
View File

@@ -0,0 +1 @@
module agent-tmp

View File

@@ -0,0 +1,17 @@
package io_tmp
import (
"fmt"
"os/user"
)
func GetUserHomeDir() {
usr, err := user.Current()
if err != nil {
fmt.Println(err)
return
}
fmt.Println(usr)
fmt.Println(usr.HomeDir)
}

View File

@@ -0,0 +1,7 @@
package io_tmp
import "testing"
func TestGetUserHomeDir(t *testing.T) {
GetUserHomeDir()
}