Registry / networking / safchain-ethtool

safchain-ethtool

JSON →
library0.7.0gogounverified

Provides a Go library for accessing Linux network device information via SIOCETHTOOL ioctl operations.

go get github.com/safchain/ethtool
INSTALL
IMPORT
SIG · SAFCHAIN-ETHTOOL
S
safchain-ethtool
networkinggov0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ethtool
github.com/safchain/ethtool

Retrieves network interface statistics using ethtool.

package main import ( "fmt" "github.com/safchain/ethtool" ) func main() { ethHandle, err := ethtool.NewEthtool() if err != nil { panic(err) } defer ethHandle.Close() stats, err := ethHandle.Stats("eth0") if err != nil { panic(err) } fmt.Println(stats) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
safchain-ethtool — go get safchain-ethtool · libregistry