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.
nftables
✓ github.com/google/nftables
Lists all nftables chains.
package main
import (
"github.com/google/nftables"
)
func main() {
conn, err := nftables.New()
if err != nil {
panic(err)
}
families, err := conn.ListChains()
if err != nil {
panic(err)
}
for _, chain := range families {
fmt.Println(chain.Name)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.3.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.