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 { type action struct {
flags struct { flags struct {
verbose bool scopes map[string]struct{}
output string
from string from string
to string to string
version string version string
scopes map[string]struct{}
repository string repository string
output string
filename string filename string
filetype string filetype string
verbose bool
dryRun bool dryRun bool
interactive bool interactive bool
} }

View File

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

View File

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