Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableTools ¶
func GetAvailableTools() string
Types ¶
type SystemInfo ¶
type SystemInfo struct { OS OSInfo `json:"os"` Arch string `json:"arch"` CPU int `json:"cpu"` Memory string `json:"memory"` AvailableTools []string `json:"available_tools"` }
func GetSystemInfo ¶
func GetSystemInfo() SystemInfo
func (SystemInfo) ToJSON ¶
func (si SystemInfo) ToJSON() (string, error)
新增函数:将 SystemInfo 转换为 JSON 字符串
func (SystemInfo) ToPrettyJSON ¶
func (si SystemInfo) ToPrettyJSON() (string, error)
新增函数:将 SystemInfo 转换为格式化的 JSON 字符串
Click to show internal directories.
Click to hide internal directories.