refactor: urfave v3
This commit is contained in:
4
vendor/github.com/emirpasic/gods/containers/iterator.go
generated
vendored
4
vendor/github.com/emirpasic/gods/containers/iterator.go
generated
vendored
@ -72,7 +72,7 @@ type IteratorWithKey interface {
|
||||
//
|
||||
// Essentially it is the same as IteratorWithIndex, but provides additional:
|
||||
//
|
||||
// # Prev() function to enable traversal in reverse
|
||||
// Prev() function to enable traversal in reverse
|
||||
//
|
||||
// Last() function to move the iterator to the last element.
|
||||
//
|
||||
@ -105,7 +105,7 @@ type ReverseIteratorWithIndex interface {
|
||||
//
|
||||
// Essentially it is the same as IteratorWithKey, but provides additional:
|
||||
//
|
||||
// # Prev() function to enable traversal in reverse
|
||||
// Prev() function to enable traversal in reverse
|
||||
//
|
||||
// Last() function to move the iterator to the last element.
|
||||
type ReverseIteratorWithKey interface {
|
||||
|
2
vendor/github.com/emirpasic/gods/lists/arraylist/arraylist.go
generated
vendored
2
vendor/github.com/emirpasic/gods/lists/arraylist/arraylist.go
generated
vendored
@ -102,7 +102,7 @@ func (list *List) Values() []interface{} {
|
||||
return newElements
|
||||
}
|
||||
|
||||
// IndexOf returns index of provided element
|
||||
//IndexOf returns index of provided element
|
||||
func (list *List) IndexOf(value interface{}) int {
|
||||
if list.size == 0 {
|
||||
return -1
|
||||
|
7
vendor/github.com/emirpasic/gods/utils/comparator.go
generated
vendored
7
vendor/github.com/emirpasic/gods/utils/comparator.go
generated
vendored
@ -10,10 +10,9 @@ import "time"
|
||||
// which will panic if a or b are not of the asserted type.
|
||||
//
|
||||
// Should return a number:
|
||||
//
|
||||
// negative , if a < b
|
||||
// zero , if a == b
|
||||
// positive , if a > b
|
||||
// negative , if a < b
|
||||
// zero , if a == b
|
||||
// positive , if a > b
|
||||
type Comparator func(a, b interface{}) int
|
||||
|
||||
// StringComparator provides a fast comparison on strings
|
||||
|
Reference in New Issue
Block a user