From 95b282ea420853f35c3c788fd0a7a34836939328 Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Mon, 8 Feb 2016 00:14:30 -0800 Subject: [PATCH] pkg -> Package --- ysv.go | 4 ++-- ysv_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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", }