Skip to content

Commit

Permalink
fix: Disable the depguard linter and properly align tags (#332)
Browse files Browse the repository at this point in the history
* Fix lint

* Fix tag alignment
  • Loading branch information
lgarber-akamai authored Jun 5, 2023
1 parent 9e7a17f commit dfe9d92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ linters:
- cyclop
- godot
- exhaustive
- depguard
fast: false
6 changes: 3 additions & 3 deletions pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (

// PageOptions are the pagination parameters for List endpoints
type PageOptions struct {
Page int `url:"page,omitempty" json:"page"`
Pages int `url:"pages,omitempty" json:"pages"`
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"`
}

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

0 comments on commit dfe9d92

Please sign in to comment.