Skip to content

Commit dfe9d92

Browse files
fix: Disable the depguard linter and properly align tags (#332)
* Fix lint * Fix tag alignment
1 parent 9e7a17f commit dfe9d92

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ linters:
7878
- cyclop
7979
- godot
8080
- exhaustive
81+
- depguard
8182
fast: false

pagination.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616

1717
// PageOptions are the pagination parameters for List endpoints
1818
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"`
19+
Page int `json:"page" url:"page,omitempty"`
20+
Pages int `json:"pages" url:"pages,omitempty"`
21+
Results int `json:"results" url:"results,omitempty"`
2222
}
2323

2424
// ListOptions are the pagination and filtering (TODO) parameters for endpoints

0 commit comments

Comments
 (0)