just panic here for now
This commit is contained in:
parent
e77dcdddd4
commit
d61579313a
@ -148,7 +148,7 @@ func resetUrlHashFile(codehash, code, sourcePath string) string {
|
|||||||
payload := strings.NewReader(code)
|
payload := strings.NewReader(code)
|
||||||
resp, err := http.Post("http://play.golang.org/share", "text/plain", payload)
|
resp, err := http.Post("http://play.golang.org/share", "text/plain", payload)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// handle error
|
panic(err)
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user