x/mode: doc EqualFold

This commit is contained in:
Blake Mizerany 2024-04-04 16:19:50 -07:00
parent 805a92e6f2
commit aef832b298

View File

@ -175,6 +175,8 @@ func (r Name) Model() string { return r.model }
func (r Name) Tag() string { return r.tag }
func (r Name) Build() string { return r.build }
// EqualFold reports whether r and o are equivalent model names, ignoring
// case.
func (r Name) EqualFold(o Name) bool {
return r.MapHash() == o.MapHash()
}