add docstrings
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package data
|
||||
|
||||
// TODO docstring
|
||||
// Defines a Weight function that determines a order on type T. As an example
|
||||
// this may be used to sort article by date or filter for a search term.
|
||||
type ISortCriteria[T any] interface {
|
||||
Weight(t T) int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user