[agent-go] [status] add status module

This commit is contained in:
zeaslity
2023-04-13 17:24:39 +08:00
parent c79eaab3a3
commit c2a22b066f
12 changed files with 306 additions and 55 deletions

View File

@@ -0,0 +1,22 @@
package status
import (
"encoding/json"
"fmt"
"testing"
)
func TestGetNetworkInfo(t *testing.T) {
networkInfo, err := GetNetworkInfo()
if err != nil {
return
}
marshalIndent, err := json.MarshalIndent(networkInfo, "", " ")
if err != nil {
fmt.Printf("error")
}
fmt.Println(string(marshalIndent))
}