25 lines
523 B
Go
25 lines
523 B
Go
//go:build windows
|
|
|
|
package sprigx
|
|
|
|
import (
|
|
`github.com/shirou/gopsutil/v4/mem`
|
|
`github.com/shirou/gopsutil/v4/winservices`
|
|
)
|
|
|
|
var (
|
|
osGenericMap map[string]any = map[string]any{
|
|
/*
|
|
PSUtil
|
|
(https://pkg.go.dev/github.com/shirou/gopsutil/v4)
|
|
*/
|
|
// .../mem
|
|
"psMemExVMem": mem.NewExWindows().VirtualMemory,
|
|
// .../winservices
|
|
"psWinsvcList": winservices.ListServices,
|
|
"psWinsvcNew": winservices.NewService,
|
|
}
|
|
osHtmlMap map[string]any = map[string]any{}
|
|
osTxtMap map[string]any = map[string]any{}
|
|
)
|