From c0a819079656f085e62921488ed69193795b984d Mon Sep 17 00:00:00 2001 From: Alexis PIRES Date: Sun, 8 Mar 2020 22:16:25 +0100 Subject: [PATCH] addobj alias --- obj.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/obj.go b/obj.go index aba9a4c..72936bd 100644 --- a/obj.go +++ b/obj.go @@ -33,6 +33,11 @@ type Obj interface { marshal(data bool) ([]byte, error) } +// AddObject adds the specified Obj. Alias of AddObj. +func (cc *Conn) AddObject(o Obj) Obj { + return cc.AddObj(o) +} + // AddObj adds the specified Obj. See also // https://wiki.nftables.org/wiki-nftables/index.php/Stateful_objects func (cc *Conn) AddObj(o Obj) Obj {