pkg -> Package

This commit is contained in:
Stephen McQuay 2016-02-08 00:14:30 -08:00
parent 8ef813e55d
commit 95b282ea42
2 changed files with 3 additions and 3 deletions

4
ysv.go
View File

@ -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(
"<meta name=\"go-import\" content=\"%s %s %s\">",
p.Path,

View File

@ -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",
}