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

2663 Коммитов

Автор SHA1 Сообщение Дата
Rob Pike 1ee6a4863d [x/blog] g.blog/slices: trivial fix to PtrSubtractOneFromLength example
There should be a := not an = in the body of the function.
Another broken example working by accident.

R=adg
CC=golang-dev
https://golang.org/cl/14059044
X-Blog-Commit: 4f303a1af2796bdcdf14fea5d4974f6c3b26c407
2013-09-28 06:51:08 +10:00
Rob Pike 17bd7046c4 [x/blog] go.blog/slices: fix bug in Append
The code didn't work but the blog runs the previous simple version, which does,
so when you hit Run it looks like it's working.
It only had two bugs (so far).

Thanks to shelah.kell@gmail.com for noticing.

R=adg
CC=golang-dev
https://golang.org/cl/14036043
X-Blog-Commit: d4c23261dc940eb2cb841a1a84832174e6bac0c4
2013-09-27 22:12:31 +10:00
Rob Pike 35f822c532 [x/blog] go.blog/slices: fix mistake in length of slice2.
R=adg
CC=golang-dev
https://golang.org/cl/14013045
X-Blog-Commit: 357626c292524e07a7994137d63324f2e193becf
2013-09-27 16:31:30 +10:00
Andrew Gerrand 6254939e2a [x/blog] go.blog: set correct date on slices article
R=r
https://golang.org/cl/14007045
X-Blog-Commit: 0058d30a98501e7772614a4525f889d4d3ec58a3
2013-09-27 12:04:41 +10:00
Rob Pike ee8dfb797b [x/blog] go.blog/slices: first draft of slices blog post
It's an exposition of append.
Still pretty rough but the programs run.

Fixes golang/go#4055.

R=golang-dev, adg, dan.kortschak, 0xjnml, mirtchovski, bradfitz
CC=golang-dev
https://golang.org/cl/13899043
X-Blog-Commit: 7175b3b62a7900cd56284ae04af85a0a076bec3c
2013-09-27 11:36:35 +10:00
Andrew Gerrand fe5b914278 [x/blog] go.blog/cmd/html2article: remove tool
It has been moved to code.google.com/p/go.tools/cmd/html2article.

R=golang-dev, minux.ma
https://golang.org/cl/14010043
X-Blog-Commit: 814dd9b6733bc217e01ba8de53e19efbd395d578
2013-09-27 11:22:29 +10:00
Andrew Gerrand 13aa4c4f82 [x/blog] go.blog/template: only show line numbers when specified
R=golang-dev, r
https://golang.org/cl/13947043
X-Blog-Commit: 78ea2d7bc77f5b9e8e9fe4f61f431e6941db32cd
2013-09-27 09:58:06 +10:00
Andrew Gerrand c1a8d59285 [x/blog] go.blog: resize images to fit inside new design
600 pixels is the new max width.

R=r
CC=golang-dev
https://golang.org/cl/13872044
X-Blog-Commit: c026ab656e38a85739e3599cbbeaca188a05cd54
2013-09-25 10:58:42 +10:00
Andrew Gerrand cc8ce8cb92 [x/blog] go.blog: add heading, fix menu link, tweak styles
R=r
CC=golang-dev
https://golang.org/cl/13458046
X-Blog-Commit: e0d1e2fc72f2407d54a88bbb037f76b0bedd83bb
2013-09-19 15:20:22 +10:00
Andrew Gerrand 8ad4222c4b [x/blog] go.blog: move cmd/blog to repo root
To be consistent with go.talks/present and go-tour/gotour.

R=r
CC=golang-dev
https://golang.org/cl/13751044
X-Blog-Commit: 271841ab79d5163e1520e5b8eee5cf170bfe4aab
2013-09-19 11:11:31 +10:00
Andrew Gerrand 6429b44b81 [x/blog] go.blog/pkg/atom: remove package
It has been moved code.google.com/p/go.tools/godoc/blog/atom.

R=golang-dev, dsymonds
https://golang.org/cl/13760043
X-Blog-Commit: 2f455468b9de0f58fa8098177b1806589b537c4b
2013-09-19 11:00:11 +10:00
Andrew Gerrand 4b532213cb [x/blog] go.blog/cmd/blog: update blog package import
R=golang-dev, r
https://golang.org/cl/13769043
X-Blog-Commit: 1b47fc1b7d9ca8e0fcd202fe5f5245a7812e07c4
2013-09-19 10:59:48 +10:00
Andrew Gerrand e0b8f53fb4 [x/tour] go-tour: update playground/socket/present import paths
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/13311044
X-Tour-Commit: 9e3081c3851f12db4a2f2a106de9ad27804fc7cc
2013-09-19 10:59:04 +10:00
Andrew Gerrand be2b2a9065 [x/blog] go.blog: update import paths
Accidentally missed these files in the previous CL.

R=dsymonds
CC=golang-dev
https://golang.org/cl/13457055
X-Blog-Commit: 3f1d67c2456dab686e4e83873ed145ffb81fc6a7
2013-09-18 15:18:37 +10:00
Andrew Gerrand a595e72bc0 [x/blog] go.blog: simpler nobuild_files rule
R=golang-dev, dsymonds
https://golang.org/cl/13662045
X-Blog-Commit: 8e64d516f92c26527f85937a9c0d4b653b33c4f0
2013-09-18 15:17:09 +10:00
Andrew Gerrand ae8dc04163 [x/blog] go.blog: use godoc design, use blog package from go.tools
Also delete go.blog/pkg/blog and unused static files.

R=golang-dev, dsymonds
https://golang.org/cl/13754043
X-Blog-Commit: a7251a3023bb3d78672ef1620be8de4151b3b41b
2013-09-18 15:16:48 +10:00
Andrew Gerrand 4d4e41fa2d [x/blog] go.blog: move blog-specific JavaScript into root template
Also update playground JavaScripts to the latest version.

This will make it easier for us to switch to godoc's static assets down
the line.

R=r, dsymonds
CC=golang-dev
https://golang.org/cl/13412049
X-Blog-Commit: 7b08321066f219dca44c9447fd63d32cf05ff733
2013-09-17 17:14:57 +10:00
Andrew Gerrand 8c05c59e45 [x/blog] go.blog: split blog server into a package and a command
Also add a "BasePath" configuration option, so that the blog
may be served under "/blog", for instance.

This is preparation to include the blog server in the binary
distributions of godoc.

R=r, dsymonds
CC=golang-dev
https://golang.org/cl/13737043
X-Blog-Commit: 18e34e7ae7fa717b074f7fad0fed540222faf43c
2013-09-17 15:57:13 +10:00
Rob Pike a58b7350b3 [x/tour] go-tour: don't use a pointer to a map in web crawl exercise
It's unnecessary and misleading.
Fixes #6322.

R=adg, dsymonds
CC=golang-dev
https://golang.org/cl/13361050
X-Tour-Commit: 6e0eacd0170251a353129adf30b63f9070707e5d
2013-09-13 16:51:35 +10:00
Andrew Gerrand c71031ce38 [x/tour] go-tour: show lines highlighted with present's "// HLfoo" feature
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/13253051
X-Tour-Commit: a77b609bb84a8d86ff1de4b02736e1013a336360
2013-09-13 12:57:50 +10:00
Rob Pike 64593671cd [x/tour] go-tour: explain how to navigate
The extant instructions mention the Next button, which doesn't exist,
but not the table of contents menu, which does.

R=adg
CC=golang-dev
https://golang.org/cl/13673043
X-Tour-Commit: cbe3d607b688dde610f7147be2e4c129db70e763
2013-09-12 11:10:02 +10:00
Rob Pike 6b27e39947 [x/tour] go-tour: update a couple of paths for app engine.
R=adg
CC=golang-dev
https://golang.org/cl/13416046
X-Tour-Commit: f0f898da9a3e3043f62562399366a715a8b94422
2013-09-11 12:03:10 +10:00
Rob Pike 6dcc0e976c [x/tour] go-tour/gotour: fix bug in argument handling
Don't use the default after going to all that trouble to override it.
Mea culpa.

R=adg
CC=golang-dev
https://golang.org/cl/13638043
X-Tour-Commit: bca2cb63546c70b4db9dc7491d203b2071d96f0b
2013-09-11 12:02:45 +10:00
Rob Pike 89835d712d [x/tour] go-tour: move programs and article file into new content subidirectory
Also put the programs into a subdirectory of prog, prog/tour.
This layout will keep things tidier as we add new tours.

At least for now, the images stay where they are because they are served
directly by the web server from the directory named static in the root.

R=adg
CC=golang-dev
https://golang.org/cl/13367049
X-Tour-Commit: 32dc98293039864d9aa3abaee017588d00a77a05
2013-09-10 13:46:15 +10:00
Rob Pike 994ac8754c [x/tour] go-tour/gotour: fix flag handling
- change the flag name to "article"
- give it the correct default
        (it had none, and then was programatically defaulted)
- try the name, then the name in the root
        (before, only the default was looked for in the root)

R=adg
CC=golang-dev
https://golang.org/cl/13441049
X-Tour-Commit: f1f8f55dcb3ed20669a2a550f5cf67469ae8b669
2013-09-10 11:50:20 +10:00
Rob Pike 3e877387b6 [x/blog] go.blog: update link in "first go program"
There's an indicator to a "clever" trick, but the file changed underfoot.
The for loop it was linked to didn't seem particularly clever.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/13518043
X-Blog-Commit: 8e475621c828cd9b9167f90407717af646c43663
2013-09-09 10:13:02 +10:00
Andrew Gerrand aec034fa24 [x/blog] go.blog: remove reference to outdated Go course
Fixes golang/go#5989.

R=r
CC=golang-dev
https://golang.org/cl/12001051
X-Blog-Commit: 09e0ad0fae7794d098e500b566897f7894023269
2013-09-02 16:45:57 +10:00
Andrew Gerrand bab5065df4 [x/tour] go-tour: move todos from tour.article to TODO file
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/13008044
X-Tour-Commit: d33d1822d1946eb45b3d19cba21b2977e4a34065
2013-08-26 12:14:58 +10:00
Olivier Duperray e1c2304aea [x/tour] go-tour: add -content flag
Fixes #11

R=golang-dev, adg, r
CC=golang-dev
https://golang.org/cl/12038049
X-Tour-Commit: ab20ac194fb3464f25771ecdcec04e0c30b8462d
2013-08-19 10:50:05 +10:00
Andrew Gerrand c44de31d3b [x/tour] go-tour: use new favicon
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13039043
X-Tour-Commit: 13207171058208a24c208b00106266988c6ac63c
2013-08-16 13:45:06 +10:00
Robert Daniel Kortschak 7dcf501f72 [x/tour] go-tour: remove built-in types from syntax highlighting keywords list
Fixes #40.

R=adg
CC=golang-dev
https://golang.org/cl/12975043
X-Tour-Commit: 6495a13de3b545b1fc90a8b340f2b9fa6ac9d9ca
2013-08-15 16:46:37 +10:00
Andrew Gerrand 3e0edb16fb [x/tour] go-tour: don't display sandbox.go with "Go local" page
R=golang-dev, dan.kortschak
CC=golang-dev
https://golang.org/cl/12977043
X-Tour-Commit: fcfd4f65f114654de70739b86e1b58fb2245cd0b
2013-08-15 16:45:26 +10:00
Andrew Gerrand ddbac8b2f4 [x/tour] go-tour: add missing sandbox.go file
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12976043
X-Tour-Commit: a74eb9e81254be2b1c49344fa5fc4f5978c95d9a
2013-08-15 15:39:19 +10:00
Andrew Gerrand 205eae7c92 [x/tour] go-tour: add slide about sandbox environment
Also mention rand.Seed.

Fixes #108.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/12741045
X-Tour-Commit: b07edc623d421212f709c68992ed1a3e5a8da11b
2013-08-15 14:10:47 +10:00
Andrew Gerrand 3dfc5f1763 [x/blog] go.blog: clarfiy wording of nth array element
This is the analog to https://golang.org/cl/11892043/

R=r
https://golang.org/cl/12017043
X-Blog-Commit: 1bb145fa097bcead2910315e51a18d47e309cb68
2013-07-29 18:53:45 +10:00
Olivier Duperray 9c9dde597a [x/tour] go-tour: use moved playground package
Fixes  issue 104 .

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/11977043
X-Tour-Commit: 46c6f08e2d7f37bce0a2c498b27b457fa2c8011d
2013-07-29 09:54:29 +10:00
Andrew Gerrand 581daf4913 [x/tour] go-tour: various expansions and clarifications
All of these are in response to user feedback.

Fixes #66.
Fixes #74.
Fixes #80.
Fixes #83.
Fixes #86.
Fixes #88.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11818043
X-Tour-Commit: f02b491a5263c01570d4395fcb14f1a8c9f861c1
2013-07-25 16:13:42 +10:00
Andrew Gerrand 08b5ef9993 [x/blog] go.blog/cmd/blog: use playground package from go.tools
R=golang-dev, dsymonds
https://golang.org/cl/11760043
X-Blog-Commit: 62242208b0fb03f19e424063bef3d0ee53055f51
2013-07-24 17:25:17 +10:00
ChaiShushan 3cb3acc577 [x/tour] go-tour: add missing error/rune predeclared identifier for Syntax-Highlighting
R=golang-dev, khr, adg
CC=golang-dev
https://golang.org/cl/11034043
X-Tour-Commit: dd74111beef6622228443a9916ba45cead9488d2
2013-07-23 14:16:22 +10:00
Andrew Gerrand d3a49dc9ea [x/blog] go.blog: add "The first Go program"
R=r
CC=rsc
https://golang.org/cl/11499043
X-Blog-Commit: 70aea4431c21f510ac86a3b7a5dc1f5e61392190
2013-07-18 15:32:09 +10:00
Andrew Gerrand f35d17cd8d [x/tour] go-tour: remove unused flag
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11323043
X-Tour-Commit: 8286aab8361b2dbbc57abb8818461690621214a0
2013-07-16 14:30:25 +10:00
ChaiShushan 44e5ff736f [x/blog] go.blog: fix typo in go-image-package
Fixes golang/go#5883.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/10811045
X-Blog-Commit: 74485dbaa4509d369b543f23d5dd659f6c77246c
2013-07-15 10:20:43 +10:00
ChaiShushan 8eb4557c68 [x/tour] go-tour: remove unnecessary code
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/10874044
X-Tour-Commit: a8401f258a1187f900b275ea38b36a78372c9614
2013-07-12 11:12:57 +10:00
Andrew Gerrand 49f8bc256a [x/tour] go-tour: fix markup on "If and else" slide
Fixes #82.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11090043
X-Tour-Commit: 2d46303d0294f8169a1dccde4a6fda4172a1455d
2013-07-10 17:08:25 +10:00
Francesc Campoy 5e79259437 [x/tour] go-tour: use time.Millisecond instead of raw constant
R=adg
CC=golang-dev
https://golang.org/cl/11069043
X-Tour-Commit: aff2ab65e9fa1c7bbcfeb4d5918cca90bc90a40a
2013-07-09 16:30:53 -07:00
ChaiShushan 51b0785565 [x/tour] go-tour: add missing delete predeclared identifier for Syntax-Highlighting
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11031043
X-Tour-Commit: e962bc295408c787e99f3b077b65bf7e0d5ba3e2
2013-07-09 16:42:10 +10:00
Andrew Gerrand 29cc97a135 [x/tour] go-tour: update to use new playground.js
R=dsymonds
CC=golang-dev
https://golang.org/cl/10933043
X-Tour-Commit: 0a44f7bf0b56dc5c9401a49cb30188a90f9f2e8a
2013-07-04 13:52:20 +10:00
Shenghou Ma 95a4b6b7ed [x/blog] go.blog/content/race-detector: s/MacOS/OS X/.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10904044
X-Blog-Commit: de996806bd2588bc4a32970059e42d5b93e1c416
2013-07-03 22:25:42 +08:00
Andrew Gerrand 563d33c762 [x/tour] go-tour: use a better notation scheme in TODO
R=r
CC=golang-dev
https://golang.org/cl/10901043
X-Tour-Commit: 979062ed8510a9ad7127eb43c55b8b61e5088401
2013-07-03 12:06:18 +10:00
Andrew Gerrand 1712bfd16b [x/tour] go-tour: add TODO list of new content to be added
Somewhat based on this list:
https://code.google.com/p/go-tour/issues/detail?id=21

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/10860043
X-Tour-Commit: 0c9dde419bd201f251f2596631f2221067caae93
2013-07-03 08:30:52 +10:00