Add printout when sending a request to play.golang.org

This commit is contained in:
Eli Bendersky 2019-06-07 06:26:27 -07:00
parent cb0f0a3056
commit 70cb6ffb45

View File

@ -143,6 +143,9 @@ func parseHashFile(sourcePath string) (string, string) {
}
func resetURLHashFile(codehash, code, sourcePath string) string {
if verbose() {
fmt.Println(" Sending request to play.golang.org")
}
payload := strings.NewReader(code)
resp, err := http.Post("https://play.golang.org/share", "text/plain", payload)
if err != nil {