I’m trying to come up with a solution to programmatically enable/disable the network card, but can not find any solution on golang.(windows/Linux)
When I have a hard time trying to figure out how to do something in Go, I try finding implementations in other programming languages. Do you know of any? I’m having a hard time finding out how to do this in Python or C on Windows or Linux. Most of the suggestions say to shell-out to run a command like ifup
/ifdown
on Linux or using the wmic
command on Windows.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.