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
@@ -458,19 +458,19 @@ Here are some suggestions for follow up measurements:
1. provoke a connect error by using:
```
go run -race ./internal/tutorial/measurex/chapter06 -address 127.0.0.1:1
go run -race ./internal/tutorial/measurex/chapter06 -address 127.0.0.1:1 | jq
```
2. provoke a TLS handshake error by using:
```
go run -race ./internal/tutorial/measurex/chapter06 -sni example.com
go run -race ./internal/tutorial/measurex/chapter06 -sni example.com | jq
```
3. provoke an HTTP round trip error by using:
```
go run -race ./internal/tutorial/measurex/chapter06 -address 8.8.8.8:853
go run -race ./internal/tutorial/measurex/chapter06 -address 8.8.8.8:853 | jq
```
4. modify the code to fetch an HTTP endpoint instead (hint: you
+3 -3
View File
@@ -459,19 +459,19 @@ func main() {
// 1. provoke a connect error by using:
//
// ```
// go run -race ./internal/tutorial/measurex/chapter06 -address 127.0.0.1:1
// go run -race ./internal/tutorial/measurex/chapter06 -address 127.0.0.1:1 | jq
// ```
//
// 2. provoke a TLS handshake error by using:
//
// ```
// go run -race ./internal/tutorial/measurex/chapter06 -sni example.com
// go run -race ./internal/tutorial/measurex/chapter06 -sni example.com | jq
// ```
//
// 3. provoke an HTTP round trip error by using:
//
// ```
// go run -race ./internal/tutorial/measurex/chapter06 -address 8.8.8.8:853
// go run -race ./internal/tutorial/measurex/chapter06 -address 8.8.8.8:853 | jq
// ```
//
// 4. modify the code to fetch an HTTP endpoint instead (hint: you