aboutsummaryrefslogtreecommitdiff
path: root/netaddr.go
diff options
context:
space:
mode:
Diffstat (limited to 'netaddr.go')
-rw-r--r--netaddr.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/netaddr.go b/netaddr.go
index 37ead1e..0a8af8b 100644
--- a/netaddr.go
+++ b/netaddr.go
@@ -14,3 +14,5 @@ func NewAddrFromIPPortString(addr string) (res NetAddr) {
}
func (self NetAddr) Free() { C.netaddr_free(self) }
+
+func (self NetAddr) IsEq(other NetAddr) bool { return bool(C.netaddr_is_eq(self, other)) }