From 6ae9013c3f14f7d77d79bfca500d1f2d3cc0e3d4 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 6 Mar 2020 11:30:04 -0500 Subject: [PATCH] add addrs.Module.Equal Mirror the addrs.ModuleInstance.Equal method --- addrs/module.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addrs/module.go b/addrs/module.go index 8f2e51e8a..c887718b1 100644 --- a/addrs/module.go +++ b/addrs/module.go @@ -40,6 +40,10 @@ func (m Module) String() string { return strings.Join(steps, ".") } +func (m Module) Equal(other Module) bool { + return m.String() == other.String() +} + // Child returns the address of a child call in the receiver, identified by the // given name. func (m Module) Child(name string) Module {