diff --git a/ysv.go b/ysv.go index 034f4b9..cb92fb0 100644 --- a/ysv.go +++ b/ysv.go @@ -32,13 +32,13 @@ var labelToVcs = map[string]vcs{ // String returns the name of the vcs ("git", "mercurial", ...). func (v vcs) String() string { return vcss[v] } -type pkg struct { +type Package struct { Vcs vcs `json":vcs"` Path string `json:"path"` Repo string `json:"repo"` } -func (p pkg) String() string { +func (p Package) String() string { return fmt.Sprintf( "", p.Path, diff --git a/ysv_test.go b/ysv_test.go index 4c0b527..6b6e018 100644 --- a/ysv_test.go +++ b/ysv_test.go @@ -6,7 +6,7 @@ import ( ) func TestString(t *testing.T) { - p := pkg{ + p := Package{ Path: "mcquay.me/bps", Repo: "https://s.mcquay.me/sm/bps", }