From 86680fa00240e3e439d1275f4f8bf89678cf3355 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Thu, 11 Oct 2018 15:20:52 -0700 Subject: Add String() method to AddressMask PiperOrigin-RevId: 216770391 Change-Id: Idcdc28b2fe9e1b0b63b8119d445f05a8bcbce81e --- pkg/tcpip/tcpip.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index cef27948c..bf11c2175 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -139,6 +139,11 @@ type Address string // AddressMask is a bitmask for an address. type AddressMask string +// String implements Stringer. +func (a AddressMask) String() string { + return Address(a).String() +} + // Subnet is a subnet defined by its address and mask. type Subnet struct { address Address -- cgit v1.2.3