From b6d375fcb7f71a925bf87af3872ebc63e18652f3 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 3 Jul 2022 21:57:44 +0700 Subject: [PATCH] chore: fix lint using fieldalignment go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest --- internal/cli/action.go | 6 +++--- internal/git/author.go | 2 +- internal/git/commit.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/cli/action.go b/internal/cli/action.go index d2c6bdd..e6bc1ee 100644 --- a/internal/cli/action.go +++ b/internal/cli/action.go @@ -19,15 +19,15 @@ const ( type action struct { flags struct { - verbose bool + scopes map[string]struct{} + output string from string to string version string - scopes map[string]struct{} repository string - output string filename string filetype string + verbose bool dryRun bool interactive bool } diff --git a/internal/git/author.go b/internal/git/author.go index 691a71c..70f6272 100644 --- a/internal/git/author.go +++ b/internal/git/author.go @@ -3,7 +3,7 @@ package git import "time" type Author struct { + When time.Time Name string Email string - When time.Time } diff --git a/internal/git/commit.go b/internal/git/commit.go index 6f808ff..ee3c1a9 100644 --- a/internal/git/commit.go +++ b/internal/git/commit.go @@ -6,8 +6,8 @@ import ( // Commit stores all git-commit information type Commit struct { - Message string Author Author + Message string } // Convert from git-commit