Граф коммитов

32 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Amsterdam 5bec756976 internal/cmd/weave: minor improvements
- Add some documentation.
- Check bufio.Scanner errors.
- Generalize the package path in caption output.

Change-Id: I1f30b555ec8533464fb29af05fdcb0c5d926c18e
Reviewed-on: https://go-review.googlesource.com/c/example/+/494596
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2023-05-15 18:31:14 +00:00
Jonathan Amsterdam 61060d64ef gotypes: re-make README.md
Regenerate README.md from go-types.md. There are minor changes,
mostly removals of line-ending spaces.

Change-Id: I83ba4b385de44e0dd2c61f5f3019d08a24ebad29
Reviewed-on: https://go-review.googlesource.com/c/example/+/494595
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2023-05-12 19:55:39 +00:00
Jonathan Amsterdam 1d341ffebc cmd/weave: move weave to a common location
Move the weave program out of the gotypes directory
so it can be used by other example documents.

It will soon be used for a document on writing slog handlers.

Change-Id: I38255e276e744e323695afaa66830107aa17d4d1
Reviewed-on: https://go-review.googlesource.com/c/example/+/494441
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2023-05-12 16:18:16 +00:00
Russ Cox 2e68773dfc all: gofmt
Gofmt to update doc comments to the new formatting.

For golang/go#51082.

Change-Id: Ic98f647623f234cf5d36309c6204683e151820d7
Reviewed-on: https://go-review.googlesource.com/c/example/+/399596
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-04-12 21:36:50 +00:00
Robert Findley ad95e7f791 gotypes: add a link to the 1.18 API guide, and fix links
Update the go/types guide to have a link to the new 1.18 API guide, for
now.

Also fix some links to pkg.go.dev and golang.org/x that were amended in
the autogenerated README.md rather than the original source.

For golang/go#50676

Change-Id: Ib98ed095d74be02046c426e51f1ae2b9ceb03b0d
Reviewed-on: https://go-review.googlesource.com/c/example/+/389656
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-04 23:50:25 +00:00
Hana 787a929d5a README.md: change the build instruction
After go1.16, `go get` runs in modules mode, and it's not the
recommended way of installing binaries nor a way to fetch source
code. Given that this example repo is designed for new go users
who want to learn, it is better to guide users to clone the repo
using the git command.

Updated the instruction for appengine-hello since goapp is gone.
I didn't test the appengine-hello instruction myself and not sure
if it still runs.

Change-Id: I74a829203def9b062bee75637c7d2c6cef448a2f
Reviewed-on: https://go-review.googlesource.com/c/example/+/340113
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2021-08-11 19:03:40 +00:00
Hana 09c3a5e06b README.md: update package paths to be golang.org/x/example/...
The module name is golang.org/x/example and the canonical repo
is go.googlesource.com/example.

Add the pkg.go.dev link in the main README.md and remove
stale godoc.org links.

Change-Id: Ia67be2179885d144c97284237df1f4373717722d
Reviewed-on: https://go-review.googlesource.com/c/example/+/307689
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2021-04-07 02:32:11 +00:00
Suzy Mueller bcf50bfd7d go.mod/go.sum: add a go.mod and go.sum file for golang.org/x/example
Add a go.mod and go.sum file for the example repo. Updates the import
path for the packages in this repository to begin with
golang.org/x/example.

Change-Id: I79a8dcfff9cebd4aa8586c57f19f86305a213598
Reviewed-on: https://go-review.googlesource.com/c/example/+/283332
Trust: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2021-01-13 20:02:57 +00:00
Alexey Palazhchenko 46695d81d1 gotypes: Go 1.9 was released
Change-Id: I482c34974a153838ddebf8f9450e29d79b19cd69
Reviewed-on: https://go-review.googlesource.com/61018
Reviewed-by: Alan Donovan <adonovan@google.com>
2017-09-04 18:50:48 +00:00
Alan Donovan 0dea2d0bf9 gotypes: document proposed Go 1.9 aliases
Change-Id: Ib072dd03ae808e774ceffab00fd716875fead445
Reviewed-on: https://go-review.googlesource.com/36721
Reviewed-by: Robert Griesemer <gri@golang.org>
2017-02-13 20:36:18 +00:00
Harry Moreno 324742add2 doc: add gotypes to readme
Copied from golang/example#2.

Change-Id: Idbf4100ab115be2a6ca03b180c5ceb9978de6e3c
Reviewed-on: https://go-review.googlesource.com/24159
Reviewed-by: Alan Donovan <adonovan@google.com>
2016-06-16 18:46:52 +00:00
mpl adefd0d380 gotypes: fix typeandvalue output
Change-Id: Id9a25bacfa670091e0b02efb6110d758ec5afca5
Reviewed-on: https://go-review.googlesource.com/23567
Reviewed-by: Alan Donovan <adonovan@google.com>
2016-05-31 14:31:25 +00:00
David R. Jenni ef176d87c1 gotypes: fix links
Change-Id: I76d62337854429b2e66b56bfc5f11d6a3d3892b2
Reviewed-on: https://go-review.googlesource.com/22012
Reviewed-by: Alan Donovan <adonovan@google.com>
2016-04-14 20:26:59 +00:00
Alan Donovan 002c6d2b26 gotypes: updates for dropping of Go 1.4 support in x/tools
Change-Id: Ibb2b40434701d33f33c4d7cb72e80393b005f8ce
Reviewed-on: https://go-review.googlesource.com/20048
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-03-01 18:15:44 +00:00
Andrew Gerrand aec836b41f template: remove duplicate element id
Fixes golang/go#14435

Change-Id: Icf318cc2a8c71258e1c8f415e588e508c29f3a06
Reviewed-on: https://go-review.googlesource.com/19782
Reviewed-by: Rob Pike <r@golang.org>
2016-02-22 00:30:56 +00:00
Andrew Gerrand d44c702087 doc: fix template link in readme
Change-Id: Ic9df686244c5e87cf53c82eb231ad7a1f1156a7c
Reviewed-on: https://go-review.googlesource.com/19538
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-02-17 22:35:13 +00:00
Andrew Gerrand e7f22345d7 template: add example to demonstrate template blocks
Fixes golang/go#14285

Change-Id: I3b32b7fc19960a77778e84cba2a0a95b49dbdf16
Reviewed-on: https://go-review.googlesource.com/19443
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Chris Broadfoot <cbro@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2016-02-17 20:43:35 +00:00
Alan Donovan ff9d95a11f gotypes: fix plural
Change-Id: I1496492af6f87cfe3cedcb772cbf112dcc5f55f8
Reviewed-on: https://go-review.googlesource.com/18231
Reviewed-by: Alan Donovan <adonovan@google.com>
2016-01-04 19:51:27 +00:00
Alan Donovan 15d04612f8 gotypes: fix typos
(Was https://github.com/golang/example/pull/3 by nikai3d)

Change-Id: I63b238a112c1406e0aaad5f9e6cba956c24e11b9
Reviewed-on: https://go-review.googlesource.com/18190
Reviewed-by: Alan Donovan <adonovan@google.com>
2015-12-28 15:15:52 +00:00
Alan Donovan 30155008b4 gotypes: even minorer fixes
Change-Id: Iba181e26e4c6ee298666983613120f8845f6e7aa
Reviewed-on: https://go-review.googlesource.com/17973
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-12-17 21:17:00 +00:00
Alan Donovan bceddce91a gotypes: minor fixes
Change-Id: Ie730f983c12a20c6c50e289650e230a05b1c782b
Reviewed-on: https://go-review.googlesource.com/17972
Reviewed-by: Alan Donovan <adonovan@google.com>
2015-12-17 18:34:22 +00:00
Alan Donovan 637ffe0981 gotypes: a tutorial on go/types, the Go type checker
Better late than never.

Change-Id: Iedd3aaa9dc3eb40b79b7430ed2d69e2d4f87dc86
Reviewed-on: https://go-review.googlesource.com/17388
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-12-17 17:00:14 +00:00
Chris Broadfoot fef4da84ae example/appengine-hello: Update Go SDK URL
Change-Id: I1029533cdc6a1ebfc546808e16633c19dfae834d
Reviewed-on: https://go-review.googlesource.com/10874
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-10 18:39:27 +00:00
Chris Broadfoot 2f99578cba example/outyet: Change baseurl to go.googlesource.com.
Change-Id: I661a56f9b18838382f23779195c4efc0cd85eddd
Reviewed-on: https://go-review.googlesource.com/10873
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-10 00:25:24 +00:00
Francesc Campoy def11b6b48 example: add bootstrap for app engine apps with a single module
Change-Id: I093602219ae8612128aa7d0029a49ede1aa431a8
Reviewed-on: https://go-review.googlesource.com/2483
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-01-13 23:11:11 +00:00
Andrew Gerrand de07b158c4 outyet: add missing containers.yaml file
Change-Id: I56e9634fe54a941bdfca33b62bbc011d4b8adfde
2014-11-13 15:06:24 +11:00
Andrew Gerrand ec2c99bcdd Update Reverse comment
Change-Id: I6e435391fc5d1d67af96ea88dcce3ccdd204d146
2014-11-07 10:10:44 +11:00
Andrew Gerrand f3cf0f452b fix stringutil tests
Change-Id: Ie6ad5645ac6fca6af22376f2fda00e1c4772ae19
2014-10-06 17:28:41 +11:00
Andrew Gerrand 2f339abbd2 simplify Dockerfile FROM clause
Change-Id: I4b3db457741d72634568faed1ec229067673ca76
2014-09-25 10:08:17 +10:00
Andrew Gerrand 4c1f1b5b40 add Dockerfile
Change-Id: I34e95a4bd3b018ea89627ae2c9db10aab5114570
2014-09-24 09:43:20 +10:00
Andrew Gerrand 298c9b3111 add godoc.org links to headings
Change-Id: Ic7560e9c866b315dc771380b51c97a85429796e3
2014-07-28 12:01:56 +10:00
Andrew Gerrand cfe12d6494 initial commit
Change-Id: Iecee6de665d30e5db1587444d8112c44bb592b4e
2014-07-28 11:35:39 +10:00