made tutorial outputs more presentable (#555)
Closes https://github.com/ooni/probe/issues/1831
This commit is contained in:
committed by
GitHub
parent
a9319142f3
commit
3f0da81bf8
@@ -69,7 +69,7 @@ we print using the usual three-liner.
|
||||
As before, let us start off with a vanilla run:
|
||||
|
||||
```bash
|
||||
go run -race ./internal/tutorial/measurex/chapter03
|
||||
go run -race ./internal/tutorial/measurex/chapter03 | jq
|
||||
```
|
||||
|
||||
This time we get a much larger JSON, so I will pretend it is
|
||||
@@ -246,7 +246,7 @@ output JSON changes because of them.
|
||||
Let us try to get a NXDOMAIN error.
|
||||
|
||||
```bash
|
||||
go run -race ./internal/tutorial/measurex/chapter03 -query antani.ooni.org
|
||||
go run -race ./internal/tutorial/measurex/chapter03 -query antani.ooni.org | jq
|
||||
```
|
||||
|
||||
This produces the following JSON:
|
||||
@@ -443,7 +443,7 @@ Let us now try to get a REFUSED DNS Rcode, again from servers
|
||||
that are, let's say, kind enough to easily help.
|
||||
|
||||
```bash
|
||||
go run -race ./internal/tutorial/measurex/chapter03 -address 180.97.36.63:53
|
||||
go run -race ./internal/tutorial/measurex/chapter03 -address 180.97.36.63:53 | jq
|
||||
```
|
||||
|
||||
Here's the answer I get:
|
||||
|
||||
@@ -70,7 +70,7 @@ func main() {
|
||||
// As before, let us start off with a vanilla run:
|
||||
//
|
||||
// ```bash
|
||||
// go run -race ./internal/tutorial/measurex/chapter03
|
||||
// go run -race ./internal/tutorial/measurex/chapter03 | jq
|
||||
// ```
|
||||
//
|
||||
// This time we get a much larger JSON, so I will pretend it is
|
||||
@@ -247,7 +247,7 @@ func main() {
|
||||
// Let us try to get a NXDOMAIN error.
|
||||
//
|
||||
// ```bash
|
||||
// go run -race ./internal/tutorial/measurex/chapter03 -query antani.ooni.org
|
||||
// go run -race ./internal/tutorial/measurex/chapter03 -query antani.ooni.org | jq
|
||||
// ```
|
||||
//
|
||||
// This produces the following JSON:
|
||||
@@ -444,7 +444,7 @@ func main() {
|
||||
// that are, let's say, kind enough to easily help.
|
||||
//
|
||||
// ```bash
|
||||
// go run -race ./internal/tutorial/measurex/chapter03 -address 180.97.36.63:53
|
||||
// go run -race ./internal/tutorial/measurex/chapter03 -address 180.97.36.63:53 | jq
|
||||
// ```
|
||||
//
|
||||
// Here's the answer I get:
|
||||
|
||||
Reference in New Issue
Block a user