Created
July 4, 2019 12:46
-
-
Save vkorbes/89fca7794aebec63ff66119f9e5d6382 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dlv debug | |
Type 'help' for list of commands. | |
(dlv) b main.go:28 | |
Breakpoint 1 set at 0x6fcffe for main.get() ./main.go:28 | |
(dlv) c | |
> main.get() ./main.go:28 (hits goroutine(1):1 total:1) (PC: 0x6fcffe) | |
23: if err != nil { | |
24: log.Fatalln(err) | |
25: } | |
26: | |
27: message, err := ioutil.ReadAll(response.Body) | |
=> 28: if err != nil { | |
29: log.Fatalln(err) | |
30: } | |
31: | |
32: return string(message) | |
33: } | |
(dlv) locals | |
err = error nil | |
message = []uint8 len: 6, cap: 512, [...] | |
response = (*net/http.Response)(0xc000192000) | |
(dlv) print string(message) | |
"Howdy!" | |
(dlv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment