Documentation ¶
Index ¶
- func CollectNetworkConfig() (map[string][]net.IP, error)
- func DetectContentType(filePath string) (string, error)
- func GetEnvVarNames() string
- func GetFileSystemInfo(path string) (total uint64, free uint64, err error)
- func GetMemoryChipInfo() (string, error)
- func GetOSInfo() (map[string]string, error)
- func GetRunningProcesses() ([]string, error)
- func HomeDir() string
- func IsExecutable(filePath string) bool
- func ListCommands(nameOnly bool) ([]string, error)
- func Uname() (string, string)
- type CodeBlock
- type CpuInfo
- type DiskInfo
- type MarkdownDoc
- type MemoryStats
- type ShellInfo
- type SystemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectContentType ¶
func GetEnvVarNames ¶
func GetEnvVarNames() string
func GetFileSystemInfo ¶
GetFileSystemInfo retrieves information about the file system.
func GetMemoryChipInfo ¶
func GetRunningProcesses ¶
func IsExecutable ¶
func ListCommands ¶
ListCommands returns the full path of the first valid executable command encountered in the PATH environment variable. If nameOnly is true, it returns only the command name.
Types ¶
type CpuInfo ¶
type CpuInfo struct { CPU int32 VendorID string ModelName string Cores int32 Mhz float64 Usage []float64 }
CpuInfo holds information about a CPU.
func GetCpuInfo ¶
GetCpuInfo retrieves and returns information about the CPUs.
type DiskInfo ¶
type DiskInfo struct { Device string MountPoint string Filesystem string Total uint64 Used uint64 Free uint64 UsedPercent float64 }
func GetDiskInfo ¶
GetDiskInfo retrieves info about the disk usage.
type MarkdownDoc ¶
func ParseMarkdown ¶
func ParseMarkdown(markdownContent string) *MarkdownDoc
type MemoryStats ¶
func GetMemoryStats ¶
func GetMemoryStats() (*MemoryStats, error)
GetMemoryStats retrieves info about the memory usage.
type ShellInfo ¶
func GetShellVersion ¶
GetShellVersion determines the current shell and retrieves its version.
type SystemInfo ¶
type SystemInfo struct { OS string Arch string OSInfo map[string]string ShellInfo *ShellInfo EnvVarNames string WorkDir string }
func CollectSystemInfo ¶
func CollectSystemInfo() (*SystemInfo, error)
Click to show internal directories.
Click to hide internal directories.