Mark McGranaghan
d351883ab8
Fix whitespace and build
2019-05-31 12:06:44 -07:00
Mark McGranaghan
936b6b2434
Merge pull request #216 from go101/patch-1
...
update for Go 1.12
2019-05-31 12:05:52 -07:00
Mark McGranaghan
151db9a129
Rebuild for variables
2019-05-30 06:35:21 -07:00
Mark McGranaghan
9f4f06d27d
Merge pull request #213 from coltonhurst/master
...
Change example text in variables.go
2019-05-30 06:33:58 -07:00
Eli Bendersky
ec0b192e48
Rename waitgroup-->waitgroups
2019-05-30 06:12:09 -07:00
Eli Bendersky
074571d952
Update examples/waitgroup/waitgroup.go
...
Co-Authored-By: Mark McGranaghan <mmcgrana@gmail.com>
2019-05-30 06:07:12 -07:00
Eli Bendersky
c7dd69349b
Update examples/waitgroup/waitgroup.go
...
Co-Authored-By: Mark McGranaghan <mmcgrana@gmail.com>
2019-05-30 05:54:32 -07:00
Eli Bendersky
2967315795
Update examples/waitgroup/waitgroup.go
...
Co-Authored-By: Mark McGranaghan <mmcgrana@gmail.com>
2019-05-30 05:54:10 -07:00
Eli Bendersky
705f713db2
Update examples/channel-synchronization/channel-synchronization.go
...
Co-Authored-By: Mark McGranaghan <mmcgrana@gmail.com>
2019-05-30 05:53:54 -07:00
Eli Bendersky
3010af04fc
Rerun tools/build to reformat
2019-05-30 05:40:18 -07:00
Eli Bendersky
74ca2a7b0f
Addressing review comments
...
* Renamed the example
* Reworded comments
* Moved it to after worker pools
* Sleep for a second instead of random
* Mention the new sample in worker pools
2019-05-30 05:28:29 -07:00
Eli Bendersky
6ab81bdf71
Add "Waiting For Goroutines To Finish" example.
...
Also link to it from the Channel Synchronization example
2019-05-29 06:01:58 -07:00
Go101
8656320237
update for Go 1.12
2019-02-26 12:29:27 -04:00
Colton Hurst
3f4d78ef6d
Change example text in variables.go
...
Instead of 'short', which is a common programming language keyword, use something random like 'apple'. This way it prevents confusion from people learning explicit variable declaration, and thinking the type is a short instead of a string.
2018-12-05 15:48:40 -05:00
Bailey Wickham
f1a6a94afd
Added warning for capital field names in structs
...
Names without capital letters will be ignored by the JSON Marshaller. This may cause confusion when fields are not being unmarshalled correctly without a warning why.
2018-11-28 18:04:20 -08:00
tschundler
ad896cc857
Update tickers.go to not leak goroutine
...
The code in the example will leak a goroutine because ticker.Stop() does not close ticker.C.
There is no way to close ticker.C, so `for _ := range ticker` is not a generally safe example for using a ticker.
2018-10-17 13:52:04 -07:00
Oleg Butuzov
ce69c753db
Article URL updated.
...
+ article in url parsing example updated to current version.
+ in addition - static/hash files regenerated
2018-04-18 09:34:53 +03:00
Mark McGranaghan
ee8149219e
Explain non-blocking sends
2018-02-09 14:47:28 -08:00
Mark McGranaghan
01a5f6de68
Use more idiomatic <int> * <const> for intervals
2018-02-09 14:16:57 -08:00
Mark McGranaghan
ca05e42084
Fix goroutines spelling
2018-02-01 17:58:40 -05:00
Mark McGranaghan
4797db6592
Rebuild for style fixes
2018-02-01 17:54:35 -05:00
Mark McGranaghan
592243aa85
Merge remote-tracking branch 'oohira/fix-word-style' into fix-word-style
2018-02-01 17:50:20 -05:00
Mark McGranaghan
c6f016430a
Rebuild for switch changes
2018-02-01 17:30:13 -05:00
Mark McGranaghan
ef0b54de18
Fix typo in switch
2018-02-01 17:29:58 -05:00
Mark McGranaghan
9ae40faa32
Rebuild for goroutines change
2018-02-01 17:26:27 -05:00
Mark McGranaghan
36352be54c
Can now shorten this
2018-02-01 17:26:11 -05:00
Bharath Ram Hariharan
6805c6cdb8
removal of unwanted variable
2018-02-01 17:24:45 -05:00
Mark McGranaghan
47be1a0ff8
Build updates
2018-02-01 16:35:20 -05:00
Mark McGranaghan
12791a4921
Consistency in sorting-by-functions.go
2018-02-01 16:33:23 -05:00
Mark McGranaghan
bb743bb826
Consistency in json.go
2018-02-01 16:32:12 -05:00
Mark McGranaghan
ca20eb066f
Merge remote-tracking branch 'nzoschke/bios-example'
2018-02-01 16:31:09 -05:00
Mark McGranaghan
37740d6936
Underscore italics around links don't seem to work
2018-02-01 16:15:50 -05:00
Noah Zoschke
ee5400dc9f
dont export types (golint)
2018-01-26 09:35:38 -08:00
Noah Zoschke
ee20cfb543
exported function comment (golint)
2018-01-26 09:34:36 -08:00
Noah Zoschke
080d71ef9c
i++ (golint)
2018-01-26 09:28:53 -08:00
Noah Zoschke
2faeae3aa6
omit type from declaration (golint)
2018-01-26 09:23:36 -08:00
Noah Zoschke
de34a8a2af
drop 0 from declaration (golint)
2018-01-26 09:21:58 -08:00
oohira
5f9b7a263d
Add <code> style to 'nil' and Remove redundant space
2017-01-14 00:36:06 +09:00
oohira
d4b81ba058
Replace ints
with int
s
2017-01-14 00:35:33 +09:00
oohira
8dcf72d27d
Replace Println
with fmt.Println
2017-01-14 00:35:16 +09:00
oohira
45080c435b
Add <code> style to 'append' function
2017-01-14 00:35:15 +09:00
Mark McGranaghan
1b53607cd5
Edits to for re: continue
...
Ref #122 .
2016-12-27 13:31:00 -08:00
Mark McGranaghan
c0e0f725d2
Merge pull request #122 from mhutter/for-continue
...
Extended `for`: Added explanation of `continue`.
2016-12-27 13:29:18 -08:00
Mark McGranaghan
a334236cc3
Remove todos
...
We are not planning to address them at this point.
2016-12-27 12:54:04 -08:00
Mark McGranaghan
b36fbd2a0e
Clean out examples not used on the site
2016-12-27 12:51:36 -08:00
Mark McGranaghan
a3b3bff8cb
Edits and generation for type switch update
2016-12-27 12:41:21 -08:00
Mark McGranaghan
bee8f55277
Merge pull request #99 from skrul/type-switch
...
Complete type switch TODO
2016-12-27 12:36:11 -08:00
Mark McGranaghan
c4b8ffdd62
Remove confusing comment about closed channels
...
Ref #108
2016-12-27 11:58:50 -08:00
Mark McGranaghan
cf6b1fe44a
Rebuild for range changes
2016-12-27 10:44:26 -08:00
Jim Walker
d5e30d788c
display output of new example
2016-12-27 10:43:20 -08:00