refactor: rename lancetconstraints package name to constraints

This commit is contained in:
dudaodong committed 2023-12-16 19:29:06 +08:00
1 parent 0b976e9a4c
commit 80e48f06ca
16 files changed
+92 -92

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ type people struct {
// PeopleAageComparator sort people slice by age field
type peopleAgeComparator struct{}
// Compare implements github.com/duke-git/lancet/v2/lancetconstraints/constraints.go/Comparator
// Compare implements github.com/duke-git/lancet/v2/constraints/constraints.go/Comparator
func (pc *peopleAgeComparator) Compare(v1 any, v2 any) int {
p1, _ := v1.(people)
p2, _ := v2.(people)