mirror of
https://github.com/Jguer/yay
synced 2024-08-31 13:49:28 +00:00
chore(style): run gofumpt on packages
This commit is contained in:
parent
827adab4b8
commit
50c0ece9a7
|
@ -6,8 +6,10 @@ import (
|
||||||
alpm "github.com/Jguer/go-alpm/v2"
|
alpm "github.com/Jguer/go-alpm/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IPackage = alpm.IPackage
|
type (
|
||||||
type Depend = alpm.Depend
|
IPackage = alpm.IPackage
|
||||||
|
Depend = alpm.Depend
|
||||||
|
)
|
||||||
|
|
||||||
func VerCmp(a, b string) int {
|
func VerCmp(a, b string) int {
|
||||||
return alpm.VerCmp(a, b)
|
return alpm.VerCmp(a, b)
|
||||||
|
|
|
@ -203,18 +203,21 @@ func Test_upDevel(t *testing.T) {
|
||||||
"hello4": {Version: "2.0.0", Name: "hello4"},
|
"hello4": {Version: "2.0.0", Name: "hello4"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: UpSlice{Repos: []string{"devel"}, Up: []Upgrade{{
|
want: UpSlice{
|
||||||
Name: "hello",
|
Repos: []string{"devel"}, Up: []Upgrade{
|
||||||
Repository: "devel",
|
{
|
||||||
LocalVersion: "2.0.0",
|
Name: "hello",
|
||||||
RemoteVersion: "latest-commit",
|
Repository: "devel",
|
||||||
},
|
LocalVersion: "2.0.0",
|
||||||
{
|
RemoteVersion: "latest-commit",
|
||||||
Name: "hello4",
|
},
|
||||||
Repository: "devel",
|
{
|
||||||
LocalVersion: "4.0.0",
|
Name: "hello4",
|
||||||
RemoteVersion: "latest-commit",
|
Repository: "devel",
|
||||||
}},
|
LocalVersion: "4.0.0",
|
||||||
|
RemoteVersion: "latest-commit",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue