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
Jim Walker
394e8aa27e
add example for ranging through keys
2016-12-27 10:43:12 -08:00
Mark McGranaghan
513eefcddc
Clarify worker-pool example
...
Ref #131
2016-12-27 10:32:33 -08:00
Mark McGranaghan
6a58750728
Consistently use Sleep in state-management examples
...
Consistently use `time.Sleep`, instead of `runtime.Gosched`, to ensure all
goroutines can make progress. `Gosched` wasn't working in the playground
(ref #149 ).
Also stop trying to compare operation rates. This was tenuous given e.g. how
short the programs ran for, and with the `Sleep`s we now expect the rates to
be similar anyways.
2016-12-27 10:13:03 -08:00
Mark McGranaghan
94cba6875d
Add some inline links to "previous examples"
...
Fixes #144 .
2016-12-27 08:50:13 -08:00
Mark McGranaghan
cca7879dce
Add note about len and [] operating on bytes
...
Fixes #148 .
2016-12-27 07:41:08 -08:00
Mark McGranaghan
e533ad365b
Fix typo in string-functions
2016-12-27 07:20:27 -08:00
Mark McGranaghan
2cad6277f8
Regenerate for #132
2016-12-27 07:18:03 -08:00
Mark McGranaghan
30e1fadfa6
Merge pull request #132 from katamaritaco/patch-1
...
Typo in the top comment
2016-12-27 07:17:35 -08:00
Mark McGranaghan
ba1fb3a1ed
Fix typo in command-line-flags
...
Closes #146 .
2016-12-27 07:12:30 -08:00
Mark McGranaghan
aaa3f66fc6
Fix ToLower capitalization in string-functions
...
Closes #150 .
2016-12-27 07:05:58 -08:00
Mark McGranaghan
eaf7f249ec
Merge pull request #136 from karlkeefer/patch-1
...
typo: trailing->tail
2016-06-05 14:31:40 -07:00
Mark McGranaghan
c2642ceaf8
Fix range commentary per #137
2016-06-05 14:28:57 -07:00
Karl Keefer
8cee0f6418
typo: trailing->tail
2016-06-02 10:18:29 -07:00
Nick Heindl
96ef75bb18
Typo in the top comment
2016-04-19 16:49:05 -05:00
Mark McGranaghan
3dc21b848c
Avoid double-pointer in Unmarshal
2015-09-14 08:50:10 -07:00
Mark McGranaghan
93e2f08a6b
Rebuild
2015-09-05 10:19:48 -07:00
Jim Walker
7dde60ce97
Fix typo on random numbers example
2015-09-05 10:12:42 -07:00
Mark McGranaghan
a4d9d2f5db
Use 1600ms to avoid racing
2015-08-29 17:12:44 -07:00
Richo Healey
f60da41f5b
Update the random examples
2015-07-27 11:13:08 -07:00
Mark McGranaghan
8b66bf7fcb
A square can't have different width and height
2015-04-19 08:26:26 -07:00
Steve Krulewitz
80d21aac1d
Complete type switch TODO
2015-02-25 16:49:49 -08:00
Mark McGranaghan
518a807773
Rebuild
2015-02-24 19:13:33 -08:00
Mark McGranaghan
446bd9fb2c
Merge pull request #98 from skrul/coalesced-parameters
...
Complete TODO for coalesced function parameters.
2015-02-24 19:12:24 -08:00
Mark McGranaghan
de90934138
Merge pull request #96 from skrul/fix-rand-comment
...
Fix comment on rand example.
2015-02-24 19:10:50 -08:00
Steve Krulewitz
abcd36fec0
Complete TODO for coalesced function parameters.
2015-02-24 17:46:59 -08:00
Steve Krulewitz
684013f5e0
Fix a few small typos.
2015-02-22 21:52:25 -08:00
Steve Krulewitz
725207847e
Fix comment on rand example.
...
Example shows methods being called on r1 (type Rand) not s1 (type Source). Fix comment to reflect this correctly.
2015-02-21 17:46:02 -08:00
Mark McGranaghan
6494e4478b
Rebuild
2015-02-14 07:19:47 -08:00
Mark McGranaghan
ad69440af1
Update comment for SplitHostPort
2015-02-14 07:16:07 -08:00
Phil Kates
ea7797e10a
url-parsing: Use net.SplitHostPort
...
Use [net.SplitHostPort](https://godoc.org/net#SplitHostPort ) instead of
strings.Split. This is the more correct way to split the host and port
as well as working with IPv6.
2015-02-12 13:19:06 -08:00
Mark McGranaghan
80fa4e4f03
Merge pull request #94 from yuvallanger/patch-1
...
Typo correction
2015-02-04 06:44:29 -08:00
Mark McGranaghan
7f27da9e7a
Add missing word
2015-01-10 14:55:49 -08:00
Mark McGranaghan
310c3f641d
Merge remote-tracking branch 'mathonsunday/master'
2015-01-10 14:54:20 -08:00
Mark McGranaghan
99e0ab00df
Rebuild
2015-01-10 14:42:44 -08:00
Mark McGranaghan
32f268e8e0
Tweak wording to "function calls"
...
It's technically the same function being called and therefore run
twice.
Ref #90
2015-01-10 14:39:43 -08:00
Traun Leyden
a904c2e519
Fixes #88
2015-01-10 11:15:14 -08:00
Veronica Ray
ed962417b7
Response to PR feedback
2015-01-07 22:03:41 -08:00
Mark McGranaghan
a2fe5f2db4
Fix interfaces typo
2014-12-13 14:19:07 -08:00
Yuval Langer
8d1a51c41d
Typo correction
2014-05-25 05:09:48 +03:00
Mark McGranaghan
edf813b3d1
Rebuild
2014-05-11 17:17:46 -07:00
Yousef Ourabi
f6f60540af
Adding call to check(err) after os.Open
...
Clearly we were just able to read the content via ioutil.ReadFile but for consistency I think it would be better to call check(err) after the call to os.Open("/tmp/dat") on line 34.
Tools like errcheck (https://github.com/kisielk/errcheck ) will complain about uncaught / unhandled err's. Also can we really be sure some 3rd party process didn't nuke '/tmp' during execution :-)
2014-05-11 17:14:20 -07:00
Mark McGranaghan
65473fc225
Rebuild
2014-05-11 14:31:26 -07:00
Mark McGranaghan
62783ebabb
Remove random backtick
2014-05-11 14:31:04 -07:00
Mark McGranaghan
0e5edb053d
Just elide this
2014-04-15 18:17:55 -07:00
Mark McGranaghan
915697101b
More consistent use of layout vs format
2014-04-15 18:14:23 -07:00
Mark McGranaghan
a8ee83af78
Emphasize time constants
...
In most cases users will format and parse times using the constants
provided in package time. Show these first before getting into custom
example-based formats.
2014-04-15 18:09:28 -07:00