aboutsummaryrefslogtreecommitdiff
path: root/container.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-05-30 14:57:29 +0200
committerStefan Majewsky <majewsky@gmx.net>2018-05-30 14:57:29 +0200
commit81732006cfe081371d8a67e47408d4eae7542179 (patch)
treef5e24ea9ed935f2a9fe4cec10930273fd47d03b3 /container.go
parentbb7eb0faacb77436a492d4b9b9775f2771a546d7 (diff)
downloadgo-schwift-81732006cfe081371d8a67e47408d4eae7542179.tar.gz
make the IsEqualTo() methods public
Diffstat (limited to 'container.go')
-rw-r--r--container.go5
1 files changed, 3 insertions, 2 deletions
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