chore: fix lint using fieldalignment
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latestmain
parent
c67be678c5
commit
b6d375fcb7
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue