Traun Leyden
a904c2e519
Fixes #88
2015-01-10 11:15:14 -08:00
Mark McGranaghan
75f7fb9039
Remove todo-ish list from examples.txt
...
At this point we're probably not going to add major new examples to
Go by Example. Remove the todo-ish looking list from examples.txt to
avoid implying otherwise in that file.
2014-12-13 16:20:54 -08:00
Joel Scoble
8e7a6bb086
Update format script for new gofmt
...
gofmt no longer supports `tabs` and `tabwidth`, but we still require
exactly-4-space tabs to preserve the narrow layout on gobyexample.com,
so re-implement this functionality with sed.
2014-12-13 14:19:07 -08:00
Mark McGranaghan
a2fe5f2db4
Fix interfaces typo
2014-12-13 14:19:07 -08:00
Mark McGranaghan
edf813b3d1
Rebuild
2014-05-11 17:17:46 -07:00
Mark McGranaghan
6e48a2324e
Merge remote-tracking branch 'yourabi/master'
2014-05-11 17:17:09 -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
b27c55ecd7
Merge commit '70305b971a05ea93bc61ed81e5834dad081933e2'
2014-05-11 14:04:27 -07:00
everyx
70305b971a
update pygments to support python3
2014-05-06 01:25:08 +08:00
Mark McGranaghan
ecc0c66006
Link to everyx as well, ref #74
2014-05-03 07:49:22 -07:00
Mark McGranaghan
370a81f53a
Add Translations index to Readme, ref #74
2014-05-03 07:40:28 -07:00
Mark McGranaghan
e282b246d8
Rebuild
2014-04-15 18:19:50 -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
7f996bd048
Merge branch 'constants-for-time'
2014-04-15 18:09:33 -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
Mark McGranaghan
56c1fd9bc1
Make template reflect compiled file
2014-04-15 18:07:00 -07:00
Mark McGranaghan
c71cab26c7
Merge remote-tracking branch 'cara-bones/master'
2014-04-10 05:45:42 -07:00
cara marie
1c13d744fd
Corrected broken 'first example' link.
2014-04-08 20:31:47 -07:00
Mark McGranaghan
fcb7a3eb71
Merge pull request #71 from jaywgraves/patch-1
...
Fix Gopher icon attribution
2014-03-26 07:08:58 -07:00
Jay Graves
572d7e3791
Fix Gopher icon attribution
...
According to http://blog.golang.org/gopher , Renée French should be attributed for the mascot.
2014-03-24 22:20:27 -05:00
Mark McGranaghan
436fee66c8
Merge remote-tracking branch 'everyx/master'
2014-02-23 08:09:55 -08:00
everyx
d244c2cbe4
add missing utf-8 package import
2014-02-23 15:42:54 +08:00
everyx
bfa6fa1771
fix measure for ckj character
2014-02-22 22:38:15 +08:00
Mark McGranaghan
e6523e8703
Remove unused HTTPS example code
...
A bad example with verify none.
2014-02-10 01:28:16 -08:00
Mark McGranaghan
4f4b2169a3
Rebuild
2014-01-22 15:49:28 -08:00
Mark McGranaghan
dc868a18a5
Merge remote-tracking branch 'zakj/patch-3'
2014-01-22 15:48:13 -08:00
Zak Johnson
f85e7839c3
Fix comment typos in signals.go
2014-01-22 15:36:22 -08:00
Mark McGranaghan
82c163b156
Rebuild
2014-01-22 08:00:54 -08:00
Mark McGranaghan
a44a00b2a3
Merge remote-tracking branch 'zakj/patch-2'
2014-01-22 08:00:42 -08:00
Zak Johnson
d84a033d3d
Fix comment typo in sorting-by-functions.go
2014-01-21 14:10:10 -08:00
Mark McGranaghan
cc39d32551
Rebuild
2014-01-19 11:12:23 -07:00
Mark McGranaghan
23a85e6f0d
Merge remote-tracking branch 'zakj/patch-1'
2014-01-19 11:12:04 -07:00
Zak Johnson
36a81cf5e9
Fix comment typo in select.go
2014-01-19 10:10:58 -08:00
Mark McGranaghan
b66cb44abd
Rebuild to remove some extra characters from dd68b8
2014-01-16 08:13:55 -08:00
Mark McGranaghan
dd68b8b99c
Merge remote-tracking branch 'catsby/json_floats'
2014-01-16 08:10:37 -08:00
Mark McGranaghan
780888b845
Add explicit go get for blackfriday lib, closes #64
2014-01-16 08:08:51 -08:00
Clint Shryock
24d1a45e6a
Tweak JSON example of unmarshalling a float
...
The current example shows `json.Unmarshal` on an array of bytes, including
`num:6.0`. In the output however this comes out as `6`. Even in the casting to
`float64`, it comes out as `6`. This can be confusion because it looks like a
simple `int`. By adding an arbitray `.13` you see it's a
float.
2014-01-15 10:06:18 -06:00
Mark McGranaghan
3c5392df99
Rebuild
2014-01-10 06:34:13 -08:00
Mark McGranaghan
b2d1ba5cd8
Tweak time formatting wording
...
Use non-teletype to indicate that it's the logical
values that need to be exact, not the specific text
which will vary by format.
2014-01-10 06:33:03 -08:00
Mark McGranaghan
017f4df00f
Merge remote-tracking branch 'will/patch-2'
2014-01-10 06:31:20 -08:00
Mark McGranaghan
8e97559c03
Rebuild
2014-01-10 06:31:15 -08:00
Mark McGranaghan
8512815a6d
Whitespace
2014-01-10 06:29:24 -08:00
Mark McGranaghan
dc7c349b7b
Remove superfluous sentance. Ref #63
2014-01-10 06:28:04 -08:00
Will Leinweber
c214c51286
Be explicit about time parsing
...
How did anyone think this was a good idea?
2014-01-07 14:13:59 -08:00
Mark McGranaghan
08fedf84be
Merge pull request #60 from carsonmcdonald/fixsuccesfully
...
Change succesfully to successfully
2013-12-26 14:43:04 -08:00
Carson McDonald
3e50762f31
Change succesfully to successfully
2013-12-23 16:58:58 -05:00
Mark McGranaghan
7a06385ccf
Rebuild
2013-12-19 11:31:08 -08:00