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
061f69cb98
Add generated HTML
2019-11-19 06:42:43 -08:00
Eli Bendersky
fa91799164
Reformat comoments to flow better with the code
2019-11-19 06:41:40 -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
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
Eli Bendersky
be9b84288c
Add a new example: testing
2019-09-12 11:30:07 -07:00
Eli Bendersky
c273588521
Make multiple imports consistent with import ( ... ) style
...
Fixes #272
2019-09-06 15:20:22 -07:00
Mark McGranaghan
16859f8db1
Merge pull request #271 from mmcgrana/clarify-timeout-chan
...
Clarify use of buffered channel in the timeouts example.
2019-09-06 07:38:59 -07:00
Mark McGranaghan
9889d7f702
This transition paragraph no longer makes sense
2019-09-06 07:38:19 -07:00
Eli Bendersky
a34c967eaf
Clarify use of buffered channel in the timeouts example.
...
The buffered channel prevents goroutine leaks in case the
channel doesn't end up being read (as indeed happens to c1).
Updates #207
2019-09-05 13:30:16 -07:00
Eli Bendersky
b70c15adaa
Clarify reading op non-atomically
2019-09-05 13:26:08 -07:00
Eli Bendersky
ef8f0e3831
Deterministic example for atomics.
...
Fixes #265
2019-09-05 10:50:09 -07:00
Mark McGranaghan
13b0da17de
Merge branch 'tickers'
2019-09-01 16:24:40 -07:00
Mark McGranaghan
a0ac6165dd
Regnerate
2019-09-01 16:20:57 -07:00
Mark McGranaghan
fab0a1888b
Rengerate
2019-09-01 16:13:55 -07:00
Eli Bendersky
c715a7efc0
Complete the example text, add .sh and generate page
2019-09-01 16:13:01 -07:00
Mark McGranaghan
78e1fd61ec
Clean up merge
2019-09-01 16:09:36 -07:00
Mark McGranaghan
99505c3954
Regnerate
2019-09-01 15:30:27 -07:00
Mark McGranaghan
367e5d6b75
Merge pull request #257 from PeterBocan/master
...
Added a constructor to structs
2019-09-01 15:24:11 -07:00
Mark McGranaghan
490c0e7599
Regenerate
2019-09-01 15:17:30 -07:00
Mark McGranaghan
53a1b7a107
Regenerate
2019-07-08 19:04:48 -07:00
Shivam Rathore
1943fe0803
arrow keys navigation added | fixes mmcgrana/gobyexample#222
2019-07-08 19:04:14 -07:00
PeterBocan
615d5e2eb4
Struct allocation fixes.
2019-07-02 15:46:54 +02:00
PeterBocan
c127e2898e
Added a constructor to structs
2019-07-01 16:45:01 +02:00
Mark McGranaghan
3d55c3ae33
Tweak comment
2019-06-30 14:11:14 -07:00
Mark McGranaghan
4049eef353
Merge remote-tracking branch 'macilias/master'
2019-06-30 14:06:23 -07:00
Mark McGranaghan
485e011b88
The random names being different is implied
2019-06-30 14:02:05 -07:00
Mark McGranaghan
1097f13d1f
Adjust ordering per GitHhub PR
2019-06-30 13:59:01 -07:00
Eli Bendersky
8219122e44
Temporary files and directories sample
...
Followup on discussion in #243
2019-06-30 13:57:05 -07:00
Mark McGranaghan
f9050decb5
Merge branch 'dir1'
2019-06-30 13:56:11 -07:00
Mark McGranaghan
751eeda8b2
Code styling for symbol references
2019-06-30 13:55:57 -07:00
Maciek Niemczyk
1aa6ac2a7a
those files has been changed after running tools/build
2019-06-17 15:13:11 +02:00
Ross Eskridge
d18911d3e8
Generate html with textual reference fix
2019-06-13 13:59:54 +00:00
Eli Bendersky
1be2c1c910
Add Walk
2019-06-08 11:20:00 -07:00
Eli Bendersky
447d77234f
Add directories example
2019-06-08 06:11:13 -07:00
Eli Bendersky
6eae6fe9b7
Adjust comments in the new file paths sample
2019-06-06 06:20:59 -07:00