From 7cd41f8491e8c276f7566461ece30fefdb4c6372 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 19 Oct 2025 19:55:42 +0500 Subject: [PATCH] Improve documentation for Clear and AddTable methods in NFT interface. --- nft.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nft.go b/nft.go index 2668d85..7caed9b 100644 --- a/nft.go +++ b/nft.go @@ -7,9 +7,15 @@ import ( // NFT A client for working with nftables type NFT interface { // Clear clears all rules. + // + // This command is equivalent to: + // nft flush ruleset Clear() error // AddTable adds a new table. + // + // This command is equivalent to: + // nft add table (ip|ip6|inet|arp|bridge) {name} AddTable(family FamilyType, name string) error }