Skip to content

Commit d692afc

Browse files
Fix the output messages in the examples
1 parent 255f299 commit d692afc

File tree

2 files changed

+162
-162
lines changed

2 files changed

+162
-162
lines changed

README.md

Lines changed: 85 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (handler LinkHandler) HandleLink(
116116
link models.SourcedLink,
117117
) {
118118
fmt.Printf(
119-
"have got the link %q from the page %q\n",
119+
"received link %q from page %q\n",
120120
handler.replaceServerURL(link.Link),
121121
handler.replaceServerURL(link.SourceLink),
122122
)
@@ -199,16 +199,16 @@ func main() {
199199
)
200200

201201
// Unordered output:
202-
// have got the link "http://example.com/1" from the page "http://example.com"
203-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
204-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
205-
// have got the link "http://example.com/2" from the page "http://example.com"
206-
// have got the link "http://example.com/2" from the page "http://example.com"
207-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
208-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
209-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
210-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
211-
// have got the link "https://golang.org/" from the page "http://example.com"
202+
// received link "http://example.com/1" from page "http://example.com"
203+
// received link "http://example.com/1/1" from page "http://example.com/1"
204+
// received link "http://example.com/1/2" from page "http://example.com/1"
205+
// received link "http://example.com/2" from page "http://example.com"
206+
// received link "http://example.com/2" from page "http://example.com"
207+
// received link "http://example.com/2/1" from page "http://example.com/2"
208+
// received link "http://example.com/2/1" from page "http://example.com/2"
209+
// received link "http://example.com/2/2" from page "http://example.com/2"
210+
// received link "http://example.com/2/2" from page "http://example.com/2"
211+
// received link "https://golang.org/" from page "http://example.com"
212212
}
213213
```
214214

@@ -248,7 +248,7 @@ func (handler LinkHandler) HandleLink(
248248
link models.SourcedLink,
249249
) {
250250
fmt.Printf(
251-
"have got the link %q from the page %q\n",
251+
"received link %q from page %q\n",
252252
handler.replaceServerURL(link.Link),
253253
handler.replaceServerURL(link.SourceLink),
254254
)
@@ -339,14 +339,14 @@ func main() {
339339
)
340340

341341
// Unordered output:
342-
// have got the link "http://example.com/1" from the page "http://example.com"
343-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
344-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
345-
// have got the link "http://example.com/2" from the page "http://example.com"
346-
// have got the link "http://example.com/2" from the page "http://example.com"
347-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
348-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
349-
// have got the link "https://golang.org/" from the page "http://example.com"
342+
// received link "http://example.com/1" from page "http://example.com"
343+
// received link "http://example.com/1/1" from page "http://example.com/1"
344+
// received link "http://example.com/1/2" from page "http://example.com/1"
345+
// received link "http://example.com/2" from page "http://example.com"
346+
// received link "http://example.com/2" from page "http://example.com"
347+
// received link "http://example.com/2/1" from page "http://example.com/2"
348+
// received link "http://example.com/2/2" from page "http://example.com/2"
349+
// received link "https://golang.org/" from page "http://example.com"
350350
}
351351
```
352352

@@ -387,7 +387,7 @@ func (handler LinkHandler) HandleLink(
387387
link models.SourcedLink,
388388
) {
389389
fmt.Printf(
390-
"have got the link %q from the page %q\n",
390+
"received link %q from page %q\n",
391391
handler.replaceServerURL(link.Link),
392392
handler.replaceServerURL(link.SourceLink),
393393
)
@@ -487,13 +487,13 @@ func main() {
487487
)
488488

489489
// Unordered output:
490-
// have got the link "http://example.com/1" from the page "http://example.com"
491-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
492-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
493-
// have got the link "http://example.com/2" from the page "http://example.com"
494-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
495-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
496-
// have got the link "https://golang.org/" from the page "http://example.com"
490+
// received link "http://example.com/1" from page "http://example.com"
491+
// received link "http://example.com/1/1" from page "http://example.com/1"
492+
// received link "http://example.com/1/2" from page "http://example.com/1"
493+
// received link "http://example.com/2" from page "http://example.com"
494+
// received link "http://example.com/2/1" from page "http://example.com/2"
495+
// received link "http://example.com/2/2" from page "http://example.com/2"
496+
// received link "https://golang.org/" from page "http://example.com"
497497
}
498498
```
499499

@@ -534,7 +534,7 @@ func (handler LinkHandler) HandleLink(
534534
link models.SourcedLink,
535535
) {
536536
fmt.Printf(
537-
"have got the link %q from the page %q\n",
537+
"received link %q from page %q\n",
538538
handler.replaceServerURL(link.Link),
539539
handler.replaceServerURL(link.SourceLink),
540540
)
@@ -638,13 +638,13 @@ func main() {
638638
)
639639

640640
// Unordered output:
641-
// have got the link "http://example.com/1" from the page "http://example.com"
642-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
643-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
644-
// have got the link "http://example.com/2" from the page "http://example.com"
645-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
646-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
647-
// have got the link "https://golang.org/" from the page "http://example.com"
641+
// received link "http://example.com/1" from page "http://example.com"
642+
// received link "http://example.com/1/1" from page "http://example.com/1"
643+
// received link "http://example.com/1/2" from page "http://example.com/1"
644+
// received link "http://example.com/2" from page "http://example.com"
645+
// received link "http://example.com/2/1" from page "http://example.com/2"
646+
// received link "http://example.com/2/2" from page "http://example.com/2"
647+
// received link "https://golang.org/" from page "http://example.com"
648648
}
649649
```
650650

@@ -683,7 +683,7 @@ func (handler LinkHandler) HandleLink(
683683
link models.SourcedLink,
684684
) {
685685
fmt.Printf(
686-
"have got the link %q from the page %q\n",
686+
"received link %q from page %q\n",
687687
handler.replaceServerURL(link.Link),
688688
handler.replaceServerURL(link.SourceLink),
689689
)
@@ -782,12 +782,12 @@ func main() {
782782
)
783783

784784
// Unordered output:
785-
// have got the link "http://example.com/1" from the page "http://example.com"
786-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
787-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
788-
// have got the link "http://example.com/2" from the page "http://example.com"
789-
// have got the link "http://example.com/2" from the page "http://example.com"
790-
// have got the link "https://golang.org/" from the page "http://example.com"
785+
// received link "http://example.com/1" from page "http://example.com"
786+
// received link "http://example.com/1/1" from page "http://example.com/1"
787+
// received link "http://example.com/1/2" from page "http://example.com/1"
788+
// received link "http://example.com/2" from page "http://example.com"
789+
// received link "http://example.com/2" from page "http://example.com"
790+
// received link "https://golang.org/" from page "http://example.com"
791791
}
792792
```
793793

@@ -827,7 +827,7 @@ func (handler LinkHandler) HandleLink(
827827
link models.SourcedLink,
828828
) {
829829
fmt.Printf(
830-
"have got the link %q from the page %q\n",
830+
"received link %q from page %q\n",
831831
handler.replaceServerURL(link.Link),
832832
handler.replaceServerURL(link.SourceLink),
833833
)
@@ -926,10 +926,10 @@ func main() {
926926
)
927927

928928
// Unordered output:
929-
// have got the link "http://example.com/1" from the page "http://example.com"
930-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
931-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
932-
// have got the link "https://golang.org/" from the page "http://example.com"
929+
// received link "http://example.com/1" from page "http://example.com"
930+
// received link "http://example.com/1/1" from page "http://example.com/1"
931+
// received link "http://example.com/1/2" from page "http://example.com/1"
932+
// received link "https://golang.org/" from page "http://example.com"
933933
}
934934
```
935935

@@ -974,7 +974,7 @@ func (handler LinkHandler) HandleLink(
974974
link models.SourcedLink,
975975
) {
976976
fmt.Printf(
977-
"have got the link %q from the page %q\n",
977+
"received link %q from page %q\n",
978978
handler.replaceServerURL(link.Link),
979979
handler.replaceServerURL(link.SourceLink),
980980
)
@@ -1162,20 +1162,20 @@ func main() {
11621162
)
11631163

11641164
// Unordered output:
1165-
// have got the link "http://example.com/1" from the page "http://example.com"
1166-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
1167-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
1168-
// have got the link "http://example.com/2" from the page "http://example.com"
1169-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
1170-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
1171-
// have got the link "http://example.com/hidden/1" from the page "http://example.com"
1172-
// have got the link "http://example.com/hidden/1/test" from the page "http://example.com/hidden/1"
1173-
// have got the link "http://example.com/hidden/2" from the page "http://example.com"
1174-
// have got the link "http://example.com/hidden/3" from the page "http://example.com"
1175-
// have got the link "http://example.com/hidden/4" from the page "http://example.com"
1176-
// have got the link "http://example.com/hidden/5" from the page "http://example.com/hidden/1/test"
1177-
// have got the link "http://example.com/hidden/6" from the page "http://example.com/hidden/1/test"
1178-
// have got the link "https://golang.org/" from the page "http://example.com"
1165+
// received link "http://example.com/1" from page "http://example.com"
1166+
// received link "http://example.com/1/1" from page "http://example.com/1"
1167+
// received link "http://example.com/1/2" from page "http://example.com/1"
1168+
// received link "http://example.com/2" from page "http://example.com"
1169+
// received link "http://example.com/2/1" from page "http://example.com/2"
1170+
// received link "http://example.com/2/2" from page "http://example.com/2"
1171+
// received link "http://example.com/hidden/1" from page "http://example.com"
1172+
// received link "http://example.com/hidden/1/test" from page "http://example.com/hidden/1"
1173+
// received link "http://example.com/hidden/2" from page "http://example.com"
1174+
// received link "http://example.com/hidden/3" from page "http://example.com"
1175+
// received link "http://example.com/hidden/4" from page "http://example.com"
1176+
// received link "http://example.com/hidden/5" from page "http://example.com/hidden/1/test"
1177+
// received link "http://example.com/hidden/6" from page "http://example.com/hidden/1/test"
1178+
// received link "https://golang.org/" from page "http://example.com"
11791179
}
11801180
```
11811181

@@ -1213,7 +1213,7 @@ func (handler LinkHandler) HandleLink(
12131213
link models.SourcedLink,
12141214
) {
12151215
fmt.Printf(
1216-
"have got the link %q from the page %q\n",
1216+
"received link %q from page %q\n",
12171217
handler.replaceServerURL(link.Link),
12181218
handler.replaceServerURL(link.SourceLink),
12191219
)
@@ -1300,16 +1300,16 @@ func main() {
13001300
)
13011301

13021302
// Unordered output:
1303-
// have got the link "http://example.com/1" from the page "http://example.com"
1304-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
1305-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
1306-
// have got the link "http://example.com/2" from the page "http://example.com"
1307-
// have got the link "http://example.com/2" from the page "http://example.com"
1308-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
1309-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
1310-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
1311-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
1312-
// have got the link "https://golang.org/" from the page "http://example.com"
1303+
// received link "http://example.com/1" from page "http://example.com"
1304+
// received link "http://example.com/1/1" from page "http://example.com/1"
1305+
// received link "http://example.com/1/2" from page "http://example.com/1"
1306+
// received link "http://example.com/2" from page "http://example.com"
1307+
// received link "http://example.com/2" from page "http://example.com"
1308+
// received link "http://example.com/2/1" from page "http://example.com/2"
1309+
// received link "http://example.com/2/1" from page "http://example.com/2"
1310+
// received link "http://example.com/2/2" from page "http://example.com/2"
1311+
// received link "http://example.com/2/2" from page "http://example.com/2"
1312+
// received link "https://golang.org/" from page "http://example.com"
13131313
}
13141314
```
13151315

@@ -1348,7 +1348,7 @@ func (handler LinkHandler) HandleLink(
13481348
link models.SourcedLink,
13491349
) {
13501350
fmt.Printf(
1351-
"have got the link %q from the page %q\n",
1351+
"received link %q from page %q\n",
13521352
handler.replaceServerURL(link.Link),
13531353
handler.replaceServerURL(link.SourceLink),
13541354
)
@@ -1439,16 +1439,16 @@ func main() {
14391439
waiter.Wait()
14401440

14411441
// Unordered output:
1442-
// have got the link "http://example.com/1" from the page "http://example.com"
1443-
// have got the link "http://example.com/1/1" from the page "http://example.com/1"
1444-
// have got the link "http://example.com/1/2" from the page "http://example.com/1"
1445-
// have got the link "http://example.com/2" from the page "http://example.com"
1446-
// have got the link "http://example.com/2" from the page "http://example.com"
1447-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
1448-
// have got the link "http://example.com/2/1" from the page "http://example.com/2"
1449-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
1450-
// have got the link "http://example.com/2/2" from the page "http://example.com/2"
1451-
// have got the link "https://golang.org/" from the page "http://example.com"
1442+
// received link "http://example.com/1" from page "http://example.com"
1443+
// received link "http://example.com/1/1" from page "http://example.com/1"
1444+
// received link "http://example.com/1/2" from page "http://example.com/1"
1445+
// received link "http://example.com/2" from page "http://example.com"
1446+
// received link "http://example.com/2" from page "http://example.com"
1447+
// received link "http://example.com/2/1" from page "http://example.com/2"
1448+
// received link "http://example.com/2/1" from page "http://example.com/2"
1449+
// received link "http://example.com/2/2" from page "http://example.com/2"
1450+
// received link "http://example.com/2/2" from page "http://example.com/2"
1451+
// received link "https://golang.org/" from page "http://example.com"
14521452
}
14531453
```
14541454

0 commit comments

Comments
 (0)