992 Commits

Author SHA1 Message Date
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
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
738d92e305
Merge pull request #211 from baileywickham/master
Added warning for capital field names in structs
2019-09-01 16:17:42 -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
Eli Bendersky
62bfb159ac Initial code for XML sample
Covers marshal/unmarshal of a simple un-nested type.

No .sh file yet
2019-09-01 16:13:01 -07:00
Mark McGranaghan
78e1fd61ec Clean up merge 2019-09-01 16:09:36 -07:00
Bailey Wickham
99218c520a
Update export explanation 2019-09-01 16:07:33 -07:00
Mark McGranaghan
ee5c86daa9 Merge branch 'master' into clipboard 2019-09-01 15:42:08 -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
3e52c1d41b
Merge pull request #260 from mmcgrana/eliben-patch-1
Update CONTRIBUTING guide to mention tools/build
2019-09-01 15:14:49 -07:00
Mark McGranaghan
a63f6904e4
Merge pull request #268 from mmcgrana/linguist
Fix up language attribution for the Github UI
2019-09-01 15:13:11 -07:00
Mark McGranaghan
d8751b33a6
Merge pull request #262 from julian-zucker/http-servers-out-typo
Fix typo in http servers example
2019-09-01 15:10:09 -07:00
Eli Bendersky
0198f3e824 Fix up language attribution for the Github UI
Currently gobyexample is flagged as a CSS repository because of all the
generated HTML.

Following instructions at https://github.com/github/linguist#vendored-code to
ask Github to ignore files that are not actual origin code.
2019-08-24 06:28:01 -07:00
Julian Zucker
482bd86963 Fix typo in http servers example 2019-07-24 18:27:04 -06:00
Eli Bendersky
2862b97d01
Update CONTRIBUTING.md 2019-07-12 06:14:47 -07:00
Mark McGranaghan
fe361d879b Merge branch 'arrow-keys' 2019-07-08 19:06:46 -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
Mark McGranaghan
ff7d5ba117 Merge branch 'buildtestchanges' 2019-07-08 18:46:15 -07:00
PeterBocan
c22f42f03c Remove extra whitespace 2019-07-02 16:30:42 +02: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
Eli Bendersky
fe1443c7ed Combine testing environments on travis 2019-07-01 06:51:20 -07:00
Eli Bendersky
fb2c28e58a When testing on Travis, verify that tools/build was run
This is done by routing the generation of HTML into a temporary directory,
and checking its diff agains the existing public/ when running tests.

Fixes #237
2019-07-01 06:44:09 -07: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
Maciek Niemczyk
b00cb1ec7e CDR request 2 2019-06-17 14:47:46 +02:00
Maciek Niemczyk
862833fcb8 CDR request 2019-06-17 14:46:02 +02:00
Maciek Niemczyk
3b153c7d80 according to https://www.joeshaw.org/dont-defer-close-on-writable-files/ one should not use defer file.close(), its a bad pattern 2019-06-17 14:25:41 +02:00
Mark McGranaghan
46fe6bc6cb
Merge pull request #247 from C-Ross/fixEnvarReference
Fix an incorrect textual reference
2019-06-13 21:40:18 -04:00
Ross Eskridge
d18911d3e8 Generate html with textual reference fix 2019-06-13 13:59:54 +00:00
Ross Eskridge
39cc92ae7f Fix forward reference in command line flags text
Text in command line flags referenced environment variables, moved that
to subcommands to read correctly.
2019-06-12 20:18:46 +00:00
Eli Bendersky
1be2c1c910 Add Walk 2019-06-08 11:20:00 -07:00
Eli Bendersky
ee8c401ac3
Update examples/directories/directories.go
Co-Authored-By: Mark McGranaghan <mmcgrana@gmail.com>
2019-06-08 11:11:58 -07:00
Mark McGranaghan
bab32db83f Merge branch 'buildprogress' 2019-06-08 11:23:23 -04:00
Mark McGranaghan
bee52f22ce Change word 2019-06-08 11:21:40 -04:00
Eli Bendersky
447d77234f Add directories example 2019-06-08 06:11:13 -07:00
Eli Bendersky
70cb6ffb45 Add printout when sending a request to play.golang.org 2019-06-07 06:26:27 -07:00
Eli Bendersky
cb0f0a3056 Tweak logged text 2019-06-07 06:17:26 -07:00
Eli Bendersky
cdbdae9715 Do progress reporting during parsing/processing stage, not HTML render stage 2019-06-07 06:12:30 -07:00