|
@@ -15,7 +15,7 @@ var (
|
|
"ASC": "ASC",
|
|
"ASC": "ASC",
|
|
"DESC": "DESC",
|
|
"DESC": "DESC",
|
|
|
|
|
|
- // Compatible with Sort.Direction in github.com/recipeer/go/qs
|
|
|
|
|
|
+ // Compatible with Sort.Direction in github.com/annybs/go/qs
|
|
//
|
|
//
|
|
// Although lowercase keywords can be used in AQL, uppercase is favoured for stylistic consistency.
|
|
// Although lowercase keywords can be used in AQL, uppercase is favoured for stylistic consistency.
|
|
"asc": "ASC",
|
|
"asc": "ASC",
|
|
@@ -24,7 +24,7 @@ var (
|
|
)
|
|
)
|
|
|
|
|
|
// ParseSortDirection returns the valid AQL operator for an arbitrary direction string.
|
|
// ParseSortDirection returns the valid AQL operator for an arbitrary direction string.
|
|
-// This supports different inputs, such as Sort.Direction in github.com/recipeer/go/qs
|
|
|
|
|
|
+// This supports different inputs, such as Sort.Direction in github.com/annybs/go/qs
|
|
//
|
|
//
|
|
// If the input operator cannot be mapped to AQL, this function returns ErrInvalidSortDirection.
|
|
// If the input operator cannot be mapped to AQL, this function returns ErrInvalidSortDirection.
|
|
func ParseSortDirection(op string) (string, error) {
|
|
func ParseSortDirection(op string) (string, error) {
|