From 6ad4468cace68a8d4c8b5a32209428e49b1b871d Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Thu, 21 Mar 2019 16:07:07 -0400 Subject: blog: add "Debugging what you deploy" post Change-Id: I9260b51caee765793eb5d320a4add3c5714a2bcc Reviewed-on: https://go-review.googlesource.com/c/blog/+/168718 Reviewed-by: Andrew Bonventre --- content/debugging-what-you-deploy.svg | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 content/debugging-what-you-deploy.svg (limited to 'content/debugging-what-you-deploy.svg') diff --git a/content/debugging-what-you-deploy.svg b/content/debugging-what-you-deploy.svg new file mode 100644 index 0000000..fb39be5 --- /dev/null +++ b/content/debugging-what-you-deploy.svg @@ -0,0 +1,59 @@ + + + + + + + + +Produced by OmniGraffle 7.10.1 +2019-03-21 19:47:24 +0000 + + +Canvas 1 + +Layer 1 + +l := line{point{1 + zero, 2 + zero}, point{3 + zero, 4 + zero}} +tinycall() +hist := make([]int, 7) +var reader io.Reader = strings.NewReader(cannedInput) +scanner := bufio.NewScanner(reader) +for scanner.Scan() { +s := scanner.Text() +i, err := strconv.ParseInt(s, 10, 64) +if err != nil { ... } +hist = ensure(int(i), hist) +hist[int(i)]++ +} + + +Go 1.10 + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3