Package qdisc
allows getting queuing discipline information via netlink,
similarly to what tc -s qdisc show
does.
package main
import (
"fmt"
"github.com/ema/qdisc"
)
func main() {
info, err := qdisc.Get()
if err == nil {
for _, msg := range info {
fmt.Printf("%+v\n", msg)
}
}
}