We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
depguard
1 parent 9e7a17f commit dfe9d92Copy full SHA for dfe9d92
.golangci.yml
@@ -78,4 +78,5 @@ linters:
78
- cyclop
79
- godot
80
- exhaustive
81
+ - depguard
82
fast: false
pagination.go
@@ -16,9 +16,9 @@ import (
16
17
// PageOptions are the pagination parameters for List endpoints
18
type PageOptions struct {
19
- Page int `url:"page,omitempty" json:"page"`
20
- Pages int `url:"pages,omitempty" json:"pages"`
21
- Results int `url:"results,omitempty" json:"results"`
+ Page int `json:"page" url:"page,omitempty"`
+ Pages int `json:"pages" url:"pages,omitempty"`
+ Results int `json:"results" url:"results,omitempty"`
22
}
23
24
// ListOptions are the pagination and filtering (TODO) parameters for endpoints
0 commit comments