From dfe9d92738092003f4b8b45fda27d13decbeee08 Mon Sep 17 00:00:00 2001 From: Lena Garber <114949949+lgarber-akamai@users.noreply.github.com> Date: Mon, 5 Jun 2023 12:24:17 -0400 Subject: [PATCH] fix: Disable the `depguard` linter and properly align tags (#332) * Fix lint * Fix tag alignment --- .golangci.yml | 1 + pagination.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 62cf6b246..26dd77cb5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -78,4 +78,5 @@ linters: - cyclop - godot - exhaustive + - depguard fast: false diff --git a/pagination.go b/pagination.go index aca495856..45313e72d 100644 --- a/pagination.go +++ b/pagination.go @@ -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