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

@ -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

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