-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Cgo instead of compiling external helper #57
Comments
reasons the current
|
Example Cgo code for getting the data: (via @dougm) |
If I use Cgo, cross compiling becomes hard.
Yes. but I think better than nothing.
Agree. I was wrong. Thank you. I will start looking for another way to get CPU times. |
+1 to this, I understand that it makes it hard to cross-compile, but I'd strongly prefer CGO over executing a binary compiled at runtime |
1284363
As a consumer of gopsutils, putting in a hard coded path to compile a C file at runtime is not an acceptable behavior. Is there any reason to not just use Cgo to call these functions?
The text was updated successfully, but these errors were encountered: