made tutorial outputs more presentable (#555)

Closes https://github.com/ooni/probe/issues/1831
This commit is contained in:
Srijan Srivastava 2021-10-22 19:47:57 +05:30 committed by GitHub
commit 3f0da81bf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 59 additions and 57 deletions

View file

@ -95,13 +95,13 @@ here on `main` using the `PanicOnError` function.
Let us perform a vanilla run first:
```bash
go run -race ./internal/tutorial/measurex/chapter11
go run -race ./internal/tutorial/measurex/chapter11 | jq
```
Take a look at the JSON output and compare it with:
```bash
go run -race ./internal/tutorial/measurex/chapter10 -url https://www.google.com
go run -race ./internal/tutorial/measurex/chapter10 -url https://www.google.com | jq
```
(which is basically forcing chapter10 to run with the
@ -114,7 +114,7 @@ and compare it to the code written in chapter10?
Now run:
```bash
go run -race ./internal/tutorial/measurex/chapter11 -url https://google.com
go run -race ./internal/tutorial/measurex/chapter11 -url https://google.com | jq
```
Do you see the opportunity there for following redirections? :^).