mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 10:57:50 +08:00
71cd3835bc
Qualified imports of pkg/tt outnumber unqualified (27 to 24). Improve consistency, and clarity, by changing the dot (unqualified) imports of that package symbols to qualified.
13 lines
284 B
Go
13 lines
284 B
Go
package vals
|
|
|
|
import (
|
|
"src.elv.sh/pkg/tt"
|
|
)
|
|
|
|
// Returns a tt.Matcher that matches using the Equal function.
|
|
func eq(r any) tt.Matcher { return equalMatcher{r} }
|
|
|
|
type equalMatcher struct{ want any }
|
|
|
|
func (em equalMatcher) Match(got tt.RetValue) bool { return Equal(got, em.want) }
|