+10
-8
handler/main.go
+10
-8
handler/main.go
······c.Println("\nSending one quick heartbeat to make sure everything is ship shape and then you should be good to go!")-Dependencies: []string{"bytes", "encoding/base64", "encoding/json", "net/http", "runtime", "time"},return errors.New("oh dear; looks like something went wrong when sending that heartbeat. " + styles.Bad.Render("Full error: \""+strings.TrimSpace(err.Error())+"\""))
······c.Println("\nSending one quick heartbeat to make sure everything is ship shape and then you should be good to go!")return errors.New("oh dear; looks like something went wrong when sending that heartbeat. " + styles.Bad.Render("Full error: \""+strings.TrimSpace(err.Error())+"\""))
+5
-1
wakatime/main.go
+5
-1
wakatime/main.go
······-req, err := http.NewRequest("POST", c.APIURL+"/users/current/heartbeats", bytes.NewBuffer(data))
······+req, err := http.NewRequest("GET", fmt.Sprintf("%s/users/current/statusbar/today", c.APIURL), bytes.NewBuffer(data))