mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-22 05:54:06 +02:00
fixed formatting and typos
This commit is contained in:
1 parent
aa4e405f92
commit
21b152b58c
14 files changed
+45
-50
No files matched your search
@@ -40,6 +40,7 @@ func (s *SortField) BuildExpr(fieldResolver FieldResolver) (string, error) {
|
||||
// into a slice of SortFields.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// fields := search.ParseSortFromString("-name,+created")
|
||||
func ParseSortFromString(str string) (fields []SortField) {
|
||||
data := strings.Split(str, ",")
|
||||
|
||||
Reference in new issue
Block a user