moved ysv -> vain

This commit is contained in:
sm
2016-02-13 00:17:12 -08:00
parent b3585cbc96
commit b7ef100a2c
6 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"os" "os"
"mcquay.me/ysv" "mcquay.me/vain"
"github.com/kelseyhightower/envconfig" "github.com/kelseyhightower/envconfig"
) )
@@ -45,7 +45,7 @@ func main() {
} }
log.Printf("serving at: http://%s:%d/", hostname, c.Port) log.Printf("serving at: http://%s:%d/", hostname, c.Port)
sm := http.NewServeMux() sm := http.NewServeMux()
ysv.NewServer(sm) vain.NewServer(sm)
addr := fmt.Sprintf(":%d", c.Port) addr := fmt.Sprintf(":%d", c.Port)
if err := http.ListenAndServe(addr, sm); err != nil { if err := http.ListenAndServe(addr, sm); err != nil {
log.Printf("problem with http server: %v", err) log.Printf("problem with http server: %v", err)
+2 -2
View File
@@ -1,2 +1,2 @@
// package ysv implements a vanity service for use by the the go tool // package vain implements a vanity service for use by the the go tool
package ysv package vain
+2 -2
View File
@@ -1,10 +1,10 @@
# ysv # vain
`ysvd` is a vanity url server for use by the `go` tool. `ysvd` is a vanity url server for use by the `go` tool.
## installation ## installation
$ go get mcquay.me/ysv/cmd/ysvd $ go get mcquay.me/vain/cmd/ysvd
## running server ## running server
+1 -1
View File
@@ -1,4 +1,4 @@
package ysv package vain
import "net/http" import "net/http"
+4 -4
View File
@@ -17,15 +17,15 @@ POST /v0/package/
A sample json object: A sample json object:
{ {
"path": "mcquay.me/ysv", "path": "mcquay.me/vain",
"repo": "https://s.mcquay.me/sm/ysv" "repo": "https://s.mcquay.me/sm/vain"
} }
Naming 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" import "fmt"
+2 -2
View File
@@ -1,4 +1,4 @@
package ysv package vain
import ( import (
"fmt" "fmt"
@@ -31,7 +31,7 @@ func TestVcsStrings(t *testing.T) {
} }
for _, test := range tests { for _, test := range tests {
if test.got != test.want { 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)
} }
} }
} }