Discover Packages
gitee.com/vhash/gutils
runtime
package
Version:
v0.8.1
Opens a new window with list of versions in this module.
Published: Feb 22, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Get the current work directory
Get the current rinning function name
type Hardware struct {
Os HwOs `json:"os"`
Cpu HwCpu `json:"cpu"`
Rrm HwRrm `json:"ram"`
Disk HwDisk `json:"disk"`
}
type HwCpu struct {
Cpus []float64 `json:"cpus"`
Cores int `json:"cores"`
}
type HwDisk struct {
UsedMB int `json:"usedMb"`
UsedGB int `json:"usedGb"`
TotalMB int `json:"totalMb"`
TotalGB int `json:"totalGb"`
UsedPercent int `json:"usedPercent"`
}
type HwOs struct {
GOOS string `json:"goos"`
NumCPU int `json:"numCpu"`
Compiler string `json:"compiler"`
GoVersion string `json:"goVersion"`
NumGoroutine int `json:"numGoroutine"`
}
type HwRrm struct {
UsedMB int `json:"usedMb"`
TotalMB int `json:"totalMb"`
UsedPercent int `json:"usedPercent"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.