-
```go
package main
import (
"fmt"
"github.com/shirou/gopsutil/cpu"
"time"
)
func main() {
percent,_ := cpu.Percent(time.Second,true)
fmt.Println(percent)
//fmt.Printf("CPU_U…
-
**Describe the bug**
`host.PlatformInformationWithContext` returns `platform = "Microsoft Windows 10 Pro"` on a fresh RTM Windows 11 install (`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current…
-
On a clean checkout of this repo, running build-standalone.sh does not work.
build log:
```
Cloning coredns repo...
Cloning into 'coredns'...
remote: Enumerating objects: 60748, done.
remote: Co…
-
使用旧go.mod,go build
Executable requires at least macOS 11.0, but is being run on macOS 10.16, and so is exiting.
重新创建go.mod go get
cannot find module providing package github.com/go-admin-team/go-…
-
I was researching a way to suspend a process knowing the pid of a process and ended up here:
https://github.com/shirou/gopsutil/blob/master/process/process_windows.go#L578-L608
It appears that t…
-
## Bug Report
can't build master branch on MAC M1
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
follow Quick start:
```
mkdir -…
-
Hi. I have just switched from using both Prometheus and New Relic client golang libraries, to using Open Telemetry.
With the Prometheus and New Relic client golang libraries, they export/publish many…
-
gopkg.in/olebedev/go-duktape.v3
# gopkg.in/olebedev/go-duktape.v3
../gop/pkg/mod/gopkg.in/olebedev/go-duktape.v3@v3.0.0-20200619000410-60c24ae608a6/dbgsockettransport.go:14:16: undefined: Context
.…
-
@moldis please fix this since go-ethereum package is your responsibility.
You can reproduce the compile error by doing this:
1. git checkout jssdk branch
2. cd $TOP/_sdkver
3. GOOS=js GOARCH=was…
-
As we know `runtime.GOARCH` provides the architecture the executable was compiled for and not the capabilities of the underlying OS and/or CPU.
It'd be helpful if a feature is added if I know the O…