1083 Commits

Author SHA1 Message Date
Hana
9e216da9ef go.mod: add go.mod and move pygments to third_party
After go1.16, go will use module mode by default,
even when the repository is checked out under GOPATH
or in a one-off directory. Add go.mod, go.sum to keep
this repo buildable without opting out of the module
mode.

> go mod init github.com/mmcgrana/gobyexample
> go mod tidy
> go mod vendor

In module mode, the 'vendor' directory is special
and its contents will be actively maintained by the
go command. pygments aren't the dependency the go will
know about, so it will delete the contents from vendor
directory. Move it to `third_party` directory now.

And, vendor the blackfriday package.

Note: the tutorial contents are not affected by the
change in go1.16 because all the examples in this
tutorial ask users to run the go command with the
explicit list of files to be compiled (e.g.
`go run hello-world.go` or `go build command-line-arguments.go`).
When the source list is provided, the go command does
not have to compute the build list and whether it's
running in GOPATH mode or module mode becomes irrelevant.
2021-02-15 16:45:26 -05:00
Mark McGranaghan
f72f11e641 Rebuild 2020-10-19 08:04:08 -07:00
Mark McGranaghan
1e3ec28f70
Merge pull request #342 from legonian/patch-1
Change t.Fail to t.Fatal
2020-10-19 08:01:29 -07:00
legonian
71719ea0f3
Change t.Fail to t.Fatal
Fail* continues execution, right function probably Fatal*.
2020-10-18 14:34:13 +03:00
Mark McGranaghan
7d87b1b9f0 Rebuild 2020-08-23 07:50:27 -07:00
Mark McGranaghan
25cf6d9e69 Merge branch 'szTheory-patch-1' 2020-08-23 07:47:43 -07:00
szTheory
7823e44fc9
Update timeouts.go: Fix typo 2020-06-13 12:42:00 +00:00
Mark McGranaghan
448c597a58 Regenerate 2020-04-10 18:06:38 -07:00
Mark McGranaghan
ce206e9c31 Try updating Go in Travis 2020-04-10 18:01:39 -07:00
Mark McGranaghan
c49161f615 Merge branch 'gregimba-grammar-fix' 2020-04-10 18:00:26 -07:00
Mark McGranaghan
15264d99c4 Merge branch 'grammar-fix' of https://github.com/gregimba/gobyexample into gregimba-grammar-fix 2020-04-10 18:00:08 -07:00
Mark McGranaghan
46cfb589ee Merge branch 'gren236-fix-mustcompile-comment' 2020-04-10 17:58:57 -07:00
Mark McGranaghan
b08d1e88d1 Regenerate 2020-04-10 17:58:50 -07:00
Mark McGranaghan
6fcca63e42 Add one more word 2020-04-10 17:58:40 -07:00
Mark McGranaghan
88676f43b2 Merge branch 'fix-mustcompile-comment' of https://github.com/gren236/gobyexample into gren236-fix-mustcompile-comment 2020-04-10 17:58:08 -07:00
Mark McGranaghan
20a46109b8 Merge branch 'andrew-field-fix/linting' 2020-04-10 17:57:06 -07:00
Mark McGranaghan
34df75392d Merge branch 'fix/linting' of https://github.com/andrew-field/gobyexample into andrew-field-fix/linting 2020-04-10 17:56:55 -07:00
Mark McGranaghan
594a5bb349 Merge branch 'andrew-field-fix/spelling' 2020-04-10 17:55:09 -07:00
Mark McGranaghan
19f63c0cf4 Merge branch 'fix/spelling' of https://github.com/andrew-field/gobyexample into andrew-field-fix/spelling 2020-04-10 17:54:46 -07:00
Mark McGranaghan
6dfa7ceb77 Merge branch 'andrew-field-possible-patch/error-checking' 2020-04-10 17:53:32 -07:00
Mark McGranaghan
90b83c94f8 Merge branch 'possible-patch/error-checking' of https://github.com/andrew-field/gobyexample into andrew-field-possible-patch/error-checking 2020-04-10 17:53:11 -07:00
Mark McGranaghan
2b08f4b1f4 Regenerate 2020-04-10 17:50:55 -07:00
Mark McGranaghan
0b7926ac8d No need for a public function 2020-04-10 17:50:26 -07:00
Mark McGranaghan
a1fd3bf037 Regenerate 2020-04-10 17:49:18 -07:00
andrew
bac19fd5d1 HTML changes 2020-03-09 14:51:16 +02:00
andrew
ebd652c4f4 Revert "Add error check to time-parsing"
This reverts commit 904c01a09867b3253517e1543fe58796de473634.
2020-03-09 14:41:18 +02:00
andrew
421044f185 update html 2020-03-09 14:33:32 +02:00
andrew
22ddaa5fd0 html changes 2020-03-09 13:29:54 +02:00
andrew
6fed3e7e69 Add hash 2020-03-09 13:24:03 +02:00
andrew
1be4329d35 Change HTML 2020-03-09 13:17:52 +02:00
andrew
0e720eec21 Revert "html changes"
This reverts commit 678cfab8931d31134260c663b5c7b5c0d8eef483.
2020-03-09 13:04:48 +02:00
andrew
746d2d5abb change html 2020-03-09 12:59:19 +02:00
andrew
678cfab893 html changes 2020-03-09 12:55:17 +02:00
andrew
5afa5faf66 Change xml 2020-03-09 12:43:20 +02:00
andrew
6c1f33628b Add error check to temporary files 2020-03-09 12:36:29 +02:00
andrew
5f6871027f Add error check to generate go 2020-03-09 12:35:41 +02:00
andrew
7311e83283 Add error check to writing file 2020-03-09 12:32:57 +02:00
andrew
904c01a098 Add error check to time-parsing 2020-03-09 12:30:21 +02:00
andrew
b66993dc19 Spelling 2020-03-09 12:20:13 +02:00
andrew
beeb231562 Couple of suggestions 2020-03-09 12:14:31 +02:00
Egor Rudkov
526be69307 Fix MustCompile comment error 2020-02-26 23:23:33 +03:00
Grant Regimbal
dd99be41c0
Update based on feedback 2020-02-13 19:19:20 -06:00
Grant Regimbal
6f312cbf64
Fix number of examples
Four examples are given but the comments refer to 3
2020-01-31 23:51:23 -06:00
Mark McGranaghan
3f8e58ad58
Merge pull request #318 from mmcgrana/fix-context-typo
Fix typo in a comment of the context example
2020-01-14 11:54:41 -08:00
Eli Bendersky
a41bd206c9 Fix typo in a comment of the context example
Fixes #317
2020-01-13 13:55:24 -08:00
Mark McGranaghan
1315f3803e
Alphabetize 2020-01-09 11:37:27 -08:00
Mark McGranaghan
844d2670ea
Merge pull request #314 from badkaktus/master-origin
Update README.md
2020-01-09 11:37:02 -08:00
badkaktus
77651fdd3a Update README.md 2020-01-09 12:33:44 +03:00
Mark McGranaghan
2897744157
Merge pull request #309 from mmcgrana/contextwording
Provide some more background on Context
2020-01-07 06:22:07 -08:00
Mark McGranaghan
800fa78c48
Merge pull request #312 from mmcgrana/workgroup-defer
Move wg.Done in waitgroup worker to defer
2020-01-07 06:21:28 -08:00