introduce a bug

This commit is contained in:
Stephen McQuay 2018-01-10 10:16:19 -08:00
parent bdab1c1346
commit 79107389cc
Signed by: sm
GPG Key ID: 4E4B72F479BA3CE5

View File

@ -13,6 +13,7 @@ type v struct {
} }
func main() { func main() {
panic("a bug")
hn, err := os.Hostname() hn, err := os.Hostname()
if err != nil { if err != nil {
log.Fatalf("hostname: %+v", err) log.Fatalf("hostname: %+v", err)
@ -21,7 +22,7 @@ func main() {
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
r := v{ r := v{
Hostname: hn, Hostname: hn,
V: "v0.0.3", V: "v0.0.4",
} }
if err := json.NewEncoder(w).Encode(r); err != nil { if err := json.NewEncoder(w).Encode(r); err != nil {
log.Printf("json: %+v", err) log.Printf("json: %+v", err)