Documentation ¶
Index ¶
- Variables
- func Battery() (*battery.Battery, error)
- func CountPkgs(manager string) (int, error)
- func Disk() ([]*disk.UsageStat, error)
- func Distro() string
- func GPU() (string, error)
- func Hostname() string
- func LocalIP() (net.IP, error)
- func Locale() (language.Tag, error)
- func Memory() (*mem.VirtualMemoryStat, error)
- func NumProcs() (int, error)
- func Pkgs(show []string) map[string]int
- func PublicIP() (net.IP, error)
- func Resolution() []image.Rectangle
- func Swap() (*mem.SwapMemoryStat, error)
- func Terminal() (string, error)
- func Usage() (float64, error)
- func Username() string
- func Wallpaper() (string, error)
- func Weather() (string, error)
- type BiosInfo
- type CPUInfo
- type ModelInfo
- type MotherboardInfo
- type ShellInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var AllPkgManagers = []string{
"dpkg",
"apk",
"kiss",
"cpt-list",
"snap",
}
View Source
var HTTPClient = http.Client{ Timeout: time.Second * 3, }
Functions ¶
func Memory ¶
func Memory() (*mem.VirtualMemoryStat, error)
func Resolution ¶
func Swap ¶
func Swap() (*mem.SwapMemoryStat, error)
Types ¶
type BiosInfo ¶
type CPUInfo ¶
type MotherboardInfo ¶
type MotherboardInfo struct { Manufacturer string `json:"manufacturer"` Product string `json:"product"` }
func Motherboard ¶
func Motherboard() (MotherboardInfo, error)
Click to show internal directories.
Click to hide internal directories.