add addrs.Module.Equal
Mirror the addrs.ModuleInstance.Equal method
This commit is contained in:
parent
bd9cfca794
commit
6ae9013c3f
|
@ -40,6 +40,10 @@ func (m Module) String() string {
|
||||||
return strings.Join(steps, ".")
|
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
|
// Child returns the address of a child call in the receiver, identified by the
|
||||||
// given name.
|
// given name.
|
||||||
func (m Module) Child(name string) Module {
|
func (m Module) Child(name string) Module {
|
||||||
|
|
Loading…
Reference in New Issue