373 Commits

Author SHA1 Message Date
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
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
Bailey Wickham
99218c520a
Update export explanation 2019-09-01 16:07:33 -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
Julian Zucker
482bd86963 Fix typo in http servers example 2019-07-24 18:27:04 -06: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
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
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
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
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
Eli Bendersky
52be303a71 File Paths example 2019-06-06 06:17:45 -07:00
Mark McGranaghan
e39e5b3889 Merge branch 'fixread' 2019-06-04 16:41:51 -07:00
Eli Bendersky
f99adfc228 Keep the two structs together for presentation 2019-06-04 16:27:55 -07:00
Eli Bendersky
f4729c8ed2 Fix reading-files example to not show out-of-bounds bytes
Fixes #165
2019-06-04 16:08:22 -07:00
Eli Bendersky
6d8aa9b50a Remove pointers from the stateful-goroutines example.
The pointers are unnecessary and make the sample slightly more
complicated.

Fixes #221
2019-06-04 15:56:59 -07:00
Mark McGranaghan
d1886245ba Presentation tweaks 2019-06-04 07:50:21 -07:00
Mark McGranaghan
573cb47955 Rebuild for tabs 2019-06-04 07:44:57 -07:00
Eli Bendersky
fab09ef735 Minor rewording 2019-06-04 07:44:39 -07:00
Eli Bendersky
973da6773f HTTP servers sample 2019-06-04 07:44:39 -07:00
Mark McGranaghan
552611bc1c Add periods 2019-06-04 07:36:05 -07:00
Mark McGranaghan
c6a401d2a3 Rebuild subcommands for tabs 2019-06-04 07:32:51 -07:00
Eli Bendersky
7c160440be Use tabs as the canonical source indentation in git
Space conversion is done during generation only. Fixes #192
2019-06-04 07:30:58 -07:00
Mark McGranaghan
af633e81f3 Presentation tweak 2019-06-04 07:25:49 -07:00
Eli Bendersky
738fc184ef Subcommands example 2019-06-04 05:48:59 -07:00
Mark McGranaghan
f2f5af3690 Fix output 2019-06-03 18:35:36 -07:00
Mark McGranaghan
fe60e81e4e Merge branch 'httpclient-sample' 2019-05-31 13:02:17 -07:00
Mark McGranaghan
2d9b204571 Use "conversion" instead of "cast", per spec
Closes #200
2019-05-31 12:45:56 -07:00
Mark McGranaghan
41d6630bdd Normalize code fragment typography
Per convention, code fragments get monotype and methods in the text
don't get parens or parameters.
2019-05-31 12:19:49 -07:00
Mark McGranaghan
c209145948 "An HTTP"
This could go either way, but my pronunciation of HTTP dictates "an" (:

https://www.quora.com/A-http-or-an-http-which-is-the-correct-grammatical-usage
2019-05-31 12:14:54 -07:00
Mark McGranaghan
60bed1aa0d Update whitespace so comment aligns with relevant code 2019-05-31 12:11:24 -07:00
Mark McGranaghan
d2d9a54208 Use fewer words in HTTP Clients intro
"out of the box" is implied by "standard library".
2019-05-31 12:10:33 -07:00
Eli Bendersky
dfcaebd536 Basic HTTP client sample 2019-05-31 12:08:57 -07:00
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