From 81732006cfe081371d8a67e47408d4eae7542179 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 30 May 2018 14:57:29 +0200 Subject: make the IsEqualTo() methods public --- container.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'container.go') diff --git a/container.go b/container.go index 6982efe..147400d 100644 --- a/container.go +++ b/container.go @@ -32,8 +32,9 @@ type Container struct { headers *ContainerHeaders } -func (c *Container) isEqualTo(other *Container) bool { - return other.name == c.name && other.a.isEqualTo(c.a) +//IsEqualTo returns true if both Container instances refer to the same container. +func (c *Container) IsEqualTo(other *Container) bool { + return other.name == c.name && other.a.IsEqualTo(c.a) } //Container returns a handle to the container with the given name within this -- cgit v1.2.3