chore: fix lint using fieldalignment

go install
golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
main
sudo pacman -Syu 2022-07-03 21:57:44 +07:00 committed by sudo pacman -Syu
parent c67be678c5
commit b6d375fcb7
3 changed files with 5 additions and 5 deletions

View File

@ -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
}

View File

@ -3,7 +3,7 @@ package git
import "time"
type Author struct {
When time.Time
Name string
Email string
When time.Time
}

View File

@ -6,8 +6,8 @@ import (
// Commit stores all git-commit information
type Commit struct {
Message string
Author Author
Message string
}
// Convert from git-commit