Eli Bendersky
ac94809b64
Replace deprecated ioutil functions with others ( #374 )
...
* Remove use of deprecated ioutil functions from examples
* Remove usage of ioutil from gobyexample's own scripts
+ regenerate output
2021-08-28 06:38:35 -07:00
Eli Bendersky
81ab859a7b
Upgrade blackfriday to v2 and fix underscore italics ( #350 )
...
Now that we have a go.mod, we can properly upgrade to blackfriday/v2
The output remains the same, but this PR brings back italic links with '_',
placing them into the link since this seems to be the more proper way.
Fixes #182
2021-02-20 10:22:23 -08:00
Mark McGranaghan
fff24f8bc7
Rebuild for typo fix
2021-02-19 13:17:41 -08:00
Yuri
1ecc5bfc61
Fix a typo
2021-02-19 13:16:37 -08:00
Mark McGranaghan
f72f11e641
Rebuild
2020-10-19 08:04:08 -07:00
legonian
71719ea0f3
Change t.Fail to t.Fatal
...
Fail* continues execution, right function probably Fatal*.
2020-10-18 14:34:13 +03:00
Mark McGranaghan
7d87b1b9f0
Rebuild
2020-08-23 07:50:27 -07:00
szTheory
7823e44fc9
Update timeouts.go: Fix typo
2020-06-13 12:42:00 +00:00
Mark McGranaghan
448c597a58
Regenerate
2020-04-10 18:06:38 -07:00
Mark McGranaghan
15264d99c4
Merge branch 'grammar-fix' of https://github.com/gregimba/gobyexample into gregimba-grammar-fix
2020-04-10 18:00:08 -07:00
Mark McGranaghan
b08d1e88d1
Regenerate
2020-04-10 17:58:50 -07:00
Mark McGranaghan
6fcca63e42
Add one more word
2020-04-10 17:58:40 -07:00
Mark McGranaghan
88676f43b2
Merge branch 'fix-mustcompile-comment' of https://github.com/gren236/gobyexample into gren236-fix-mustcompile-comment
2020-04-10 17:58:08 -07:00
Mark McGranaghan
34df75392d
Merge branch 'fix/linting' of https://github.com/andrew-field/gobyexample into andrew-field-fix/linting
2020-04-10 17:56:55 -07:00
Mark McGranaghan
19f63c0cf4
Merge branch 'fix/spelling' of https://github.com/andrew-field/gobyexample into andrew-field-fix/spelling
2020-04-10 17:54:46 -07:00
Mark McGranaghan
90b83c94f8
Merge branch 'possible-patch/error-checking' of https://github.com/andrew-field/gobyexample into andrew-field-possible-patch/error-checking
2020-04-10 17:53:11 -07:00
Mark McGranaghan
2b08f4b1f4
Regenerate
2020-04-10 17:50:55 -07:00
Mark McGranaghan
0b7926ac8d
No need for a public function
2020-04-10 17:50:26 -07:00
andrew
bac19fd5d1
HTML changes
2020-03-09 14:51:16 +02:00
andrew
ebd652c4f4
Revert "Add error check to time-parsing"
...
This reverts commit 904c01a09867b3253517e1543fe58796de473634.
2020-03-09 14:41:18 +02:00
andrew
6fed3e7e69
Add hash
2020-03-09 13:24:03 +02:00
andrew
1be4329d35
Change HTML
2020-03-09 13:17:52 +02:00
andrew
6c1f33628b
Add error check to temporary files
2020-03-09 12:36:29 +02:00
andrew
7311e83283
Add error check to writing file
2020-03-09 12:32:57 +02:00
andrew
904c01a098
Add error check to time-parsing
2020-03-09 12:30:21 +02:00
andrew
b66993dc19
Spelling
2020-03-09 12:20:13 +02:00
andrew
beeb231562
Couple of suggestions
2020-03-09 12:14:31 +02:00
Egor Rudkov
526be69307
Fix MustCompile comment error
2020-02-26 23:23:33 +03:00
Grant Regimbal
dd99be41c0
Update based on feedback
2020-02-13 19:19:20 -06:00
Grant Regimbal
6f312cbf64
Fix number of examples
...
Four examples are given but the comments refer to 3
2020-01-31 23:51:23 -06:00
Eli Bendersky
a41bd206c9
Fix typo in a comment of the context example
...
Fixes #317
2020-01-13 13:55:24 -08:00
Mark McGranaghan
2897744157
Merge pull request #309 from mmcgrana/contextwording
...
Provide some more background on Context
2020-01-07 06:22:07 -08:00
Eli Bendersky
bd25cd7ee9
Move wg.Done in waitgroup worker to defer
...
Fixes #310
2020-01-07 06:05:34 -08:00
Eli Bendersky
5d8d89d246
Provide some more background on Context
...
And add a comment about the `Err()` method.
Followup on #301
2020-01-04 14:05:02 -08:00
Richard Morrison
0fbbc70ba5
Remove magic numbers from code
2020-01-04 10:36:28 -08:00
Mark McGranaghan
b32972d2e4
Clarify in Timers that we give timer2 a real chance to fire
...
Closes #304
2020-01-04 10:17:11 -08:00
Mark McGranaghan
cb8bf44eca
Regen hash for Context
2020-01-04 09:59:11 -08:00
Mark McGranaghan
87b2731f91
Merge branch 'sha1-hashes-generation'
2020-01-04 09:58:41 -08:00
Mark McGranaghan
df99089b9f
Rename to shorter context
2020-01-04 09:50:52 -08:00
Eli Bendersky
fa91799164
Reformat comoments to flow better with the code
2019-11-19 06:41:40 -08:00
Eli Bendersky
ff70f04795
Adding example of HTTP server using context.Context
2019-11-19 06:39:53 -08:00
Oleg Butuzov
646c8b39da
bugfix ( mmcgrana/gobyexample#294 ) sha1 sum calculator
...
This bugfix implements correct way to calculate source sha1 hash, before it will changed,
by propagation of unchanged sources.
This commit will also include regenerated static files and *.hash files.
2019-10-22 14:27:02 +03:00
Mark McGranaghan
43825687bb
Rebuild for environment-variables
2019-10-13 18:29:40 -07:00
Mark McGranaghan
410beb8393
Merge pull request #284 from smoser/fix/environment-split-n
...
Use SplitN rather than Split on os.Environ return value.
2019-10-13 21:28:56 -04:00
Mark McGranaghan
2c7063ec2f
Rebuild
2019-10-13 18:28:25 -07:00
Scott Moser
c06d8a62c5
Use SplitN rather than Split on os.Environ return value.
...
Environment variables can contain a '=' in their value
KEY=BAR=1 sh -c 'echo KEY VALUE is "$KEY"'
If you just use Split() then you may not actually get a 'pair'
but rather a slice with length >= 3.
2019-10-10 21:39:19 -04:00
Jerry Kotas
4076ee15e5
Fixed comment in tickers.go
2019-10-10 15:38:15 -04:00
Mark McGranaghan
82287d9903
Merge pull request #277 from danitello/structs-examples
...
Structs - fix example output
2019-09-28 19:44:20 -04:00
Eli Bendersky
61e8dde1c1
Use time.Sleep instead of fmt.Scanln to wait for goroutines
...
The Scanln doesn't work on the Go playground
Fixes #279
2019-09-20 14:55:41 -07:00
danitello
1c4e40df3f
Structs - fix example output
2019-09-15 12:46:45 -07:00