fixed bug

This commit is contained in:
sm
2018-01-10 10:18:37 -08:00
parent 79107389cc
commit e9a5788d2e
+1 -2
View File
@@ -13,7 +13,6 @@ type v struct {
}
func main() {
panic("a bug")
hn, err := os.Hostname()
if err != nil {
log.Fatalf("hostname: %+v", err)
@@ -22,7 +21,7 @@ func main() {
w.Header().Set("Content-Type", "application/json")
r := v{
Hostname: hn,
V: "v0.0.4",
V: "v0.0.5",
}
if err := json.NewEncoder(w).Encode(r); err != nil {
log.Printf("json: %+v", err)