From b7ef100a2cdc934e256bcf4717ed87616249f8c9 Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Thu, 11 Feb 2016 11:57:16 -0800 Subject: [PATCH] moved ysv -> vain --- cmd/ysvd/main.go | 4 ++-- doc.go | 4 ++-- readme.md | 4 ++-- server.go | 2 +- ysv.go => vain.go | 8 ++++---- ysv_test.go => vain_test.go | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) rename ysv.go => vain.go (87%) rename ysv_test.go => vain_test.go (84%) diff --git a/cmd/ysvd/main.go b/cmd/ysvd/main.go index dfe130e..af29a92 100644 --- a/cmd/ysvd/main.go +++ b/cmd/ysvd/main.go @@ -6,7 +6,7 @@ import ( "net/http" "os" - "mcquay.me/ysv" + "mcquay.me/vain" "github.com/kelseyhightower/envconfig" ) @@ -45,7 +45,7 @@ func main() { } log.Printf("serving at: http://%s:%d/", hostname, c.Port) sm := http.NewServeMux() - ysv.NewServer(sm) + vain.NewServer(sm) addr := fmt.Sprintf(":%d", c.Port) if err := http.ListenAndServe(addr, sm); err != nil { log.Printf("problem with http server: %v", err) diff --git a/doc.go b/doc.go index 5fc7b89..64e3a2a 100644 --- a/doc.go +++ b/doc.go @@ -1,2 +1,2 @@ -// package ysv implements a vanity service for use by the the go tool -package ysv +// package vain implements a vanity service for use by the the go tool +package vain diff --git a/readme.md b/readme.md index fc49c8e..907aec7 100644 --- a/readme.md +++ b/readme.md @@ -1,10 +1,10 @@ -# ysv +# vain `ysvd` is a vanity url server for use by the `go` tool. ## installation - $ go get mcquay.me/ysv/cmd/ysvd + $ go get mcquay.me/vain/cmd/ysvd ## running server diff --git a/server.go b/server.go index eba1deb..0581441 100644 --- a/server.go +++ b/server.go @@ -1,4 +1,4 @@ -package ysv +package vain import "net/http" diff --git a/ysv.go b/vain.go similarity index 87% rename from ysv.go rename to vain.go index 882e808..a9ff6c0 100644 --- a/ysv.go +++ b/vain.go @@ -17,15 +17,15 @@ POST /v0/package/ A sample json object: { - "path": "mcquay.me/ysv", - "repo": "https://s.mcquay.me/sm/ysv" + "path": "mcquay.me/vain", + "repo": "https://s.mcquay.me/sm/vain" } Naming -ysv stands for You're so Vain, the song by Carly Simon. +the "ysv" in ysvd stands for You're so Vain, the song by Carly Simon. */ -package ysv +package vain import "fmt" diff --git a/ysv_test.go b/vain_test.go similarity index 84% rename from ysv_test.go rename to vain_test.go index 6b6e018..1690969 100644 --- a/ysv_test.go +++ b/vain_test.go @@ -1,4 +1,4 @@ -package ysv +package vain import ( "fmt" @@ -31,7 +31,7 @@ func TestVcsStrings(t *testing.T) { } for _, test := range tests { if test.got != test.want { - t.Errorf("incorrect conversion of ysv.Vcs -> string; got %q, want %q", test.got, test.want) + t.Errorf("incorrect conversion of vain.Vcs -> string; got %q, want %q", test.got, test.want) } } }