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
parent a9319142f3
commit 3f0da81bf8
26 changed files with 59 additions and 57 deletions
@@ -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? :^).
+3 -3
View File
@@ -96,13 +96,13 @@ func main() {
// 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
@@ -115,7 +115,7 @@ func main() {
// 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? :^).