Add printout when sending a request to play.golang.org
This commit is contained in:
parent
cb0f0a3056
commit
70cb6ffb45
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user