summaryrefslogtreecommitdiff
path: root/doc/code.html
Commit message (Collapse)AuthorAgeFilesLines
* doc, cmd/go: adjust documentation for default GOPATHRuss Cox2016-11-301-12/+25
| | | | | | | | | | | Replaces CL 33356. Fixes #17262. Change-Id: Idfb2343e90771775e51a66c63760f458737a288c Reviewed-on: https://go-review.googlesource.com/33730 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* go/build: add help info for unset $GOPATHEdward Muller2016-09-101-1/+1
| | | | | | | | | | | | | We relay this info in a few places, in a few different ways, but not consistently everywhere. This led one of our users to start googling and not find https://golang.org/doc/code.html#Workspaces, of which `go help gopath` is the most equivalent. Change-Id: I28a94375739f3aa4f200e145293ca2a5f65101e1 Reviewed-on: https://go-review.googlesource.com/28690 Run-TryBot: Rob Pike <r@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org>
* doc: add Overview and other small edits to How To Write Go CodeAndrew Gerrand2016-01-121-12/+37
| | | | | | | | | Fixes #9228 Change-Id: Ic4df4a39f6f363bdd6eb9228c8164e6e9dccee1b Reviewed-on: https://go-review.googlesource.com/5561 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Austin Clements <austin@google.com>
* doc: Added link to 'go help gopath'Christopher Guiney2015-01-051-0/+5
| | | | | | | | | The existing go code document did not link to the GOPATH documentation. This will link to it, in hopes of making it more discoverable. Change-Id: Ie4ded2fdce08f412e4acbcc93acdd76f5791b84a Reviewed-on: https://go-review.googlesource.com/2265 Reviewed-by: Andrew Gerrand <adg@golang.org>
* doc: propose $GOPATH as $HOME/work, not $HOME/goAndrew Gerrand2014-12-161-5/+6
| | | | | | | | Related to issue #9228 Change-Id: I0819e657f6393788754d1412f9c2126a170d4cf1 Reviewed-on: https://go-review.googlesource.com/1577 Reviewed-by: Rob Pike <r@golang.org>
* [release-branch.go1.4] doc: scrub references to code.google.comAndrew Gerrand2014-12-121-2/+2
| | | | | | | | | | | | | | | | These are the references that affect current Go users. I left intact references in older release notes; we can figure out what to do with them later. LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/186140043 Conflicts: doc/go1.4.html Change-Id: I1032686f2b3ac6dacaf8f114b8c35cdf221330ca
* all: use golang.org/x/... import pathsAndrew Gerrand2014-11-101-87/+96
| | | | | | | LGTM=rsc, r R=r, rsc CC=golang-codereview, golang-codereviews https://golang.org/cl/168050043
* doc: drop scheme from links that are known to support HTTPSAndrew Gerrand2014-07-251-8/+8
| | | | | | | | | | | golang.org now serves HTTPS with a valid cert, so it's reasonable that users should click through to the HTTPS versions of *.golang.org and other known sites. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/112650043
* doc: update installation instructionsAndrew Gerrand2013-11-211-1/+25
| | | | | | | | | | | | | Clarify that GOROOT should only be set when using a custom install path. Remove NetBSD from binary install page (we don't provide binaries). Remove "What's next" links from installation instructions. Emphasize "How to Write Go Code" page. Fixes #6613. R=golang-dev, r CC=golang-dev https://golang.org/cl/28700043
* doc: fix small HTML problemsShenghou Ma2013-10-121-1/+1
| | | | | | R=golang-dev, dave CC=golang-dev https://golang.org/cl/14629043
* doc: fix a few broken linksAndrew Gerrand2013-10-091-1/+1
| | | | | | R=golang-dev, r CC=golang-dev https://golang.org/cl/14494044
* doc: Fix typo in approximation of square rootKatrina Owen2013-05-291-2/+2
| | | | | | | | See https://en.wikipedia.org/wiki/Newton%27s_method#Square_root_of_a_number R=golang-dev, minux.ma, adg CC=golang-dev https://golang.org/cl/9145044
* doc/code.html: remove doubled word; modify the tab to space.Oling Cat2013-04-231-4/+4
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8919043
* doc/code.html: fix typosAndriy Lytvynov2013-04-041-2/+2
| | | | | | | | | Fixed example program's output to match program's code. Fixes #5204. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/8365043
* doc: use the already defined GOPATH in PATHDuncan Holm2013-04-041-1/+1
| | | | | | R=golang-dev, adg CC=golang-dev https://golang.org/cl/8248044
* doc: fix typos and trailing spacesAlexei Sholik2013-04-031-4/+4
| | | | | | R=golang-dev, adg CC=golang-dev https://golang.org/cl/8285044
* doc: mention godoc.org in "How to Write Go Code"Andrew Gerrand2013-04-041-3/+4
| | | | | | R=golang-dev, r CC=golang-dev https://golang.org/cl/8344043
* doc: simplify How to write Go code articleAndrew Gerrand2013-04-041-186/+275
| | | | | | | | | | This version just tells you what to do, rather than trying to teach you how it all works. Should be much better for newcomers. R=dave, gary.burd, alcosholik, r CC=golang-dev https://golang.org/cl/8247044
* doc: link to wiki Projects page instead of old Project Dashboard.Greg Ward2013-02-111-2/+2
| | | | | | R=golang-dev, adg CC=golang-dev https://golang.org/cl/7308079
* doc: fix various fragment linksAndrew Gerrand2013-01-151-2/+2
| | | | | | R=dsymonds CC=golang-dev https://golang.org/cl/7094058
* doc: link to Go coding screencastAndrew Gerrand2012-11-131-0/+4
| | | | | | R=golang-dev, r CC=golang-dev https://golang.org/cl/6849046
* doc: fix some HTML syntax errorsShenghou Ma2012-08-071-1/+1
| | | | | | R=adg CC=golang-dev https://golang.org/cl/6458043
* doc/code: mention $GOBINShenghou Ma2012-04-171-1/+2
| | | | | | R=golang-dev, adg CC=golang-dev https://golang.org/cl/5989045
* doc/code: update newmath.Sqrt test case to make sure test succeedShenghou Ma2012-04-101-2/+2
| | | | | | | | Fixes #3445. R=golang-dev, rsc, mtj CC=golang-dev https://golang.org/cl/5975061
* doc: shorten project dashboard linkAndrew Gerrand2012-04-051-1/+1
| | | | | | | | | Fixes #3420. (which was already fixed) R=golang-dev, bradfitz, dsymonds CC=golang-dev https://golang.org/cl/5987043
* doc/code.html: change 'affect' to 'effect'.Peter Weinberger2012-04-021-1/+1
| | | | | | | | Fixes #3429. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5966047
* doc/code.html: fix broken dashboard linkShenghou Ma2012-03-301-2/+2
| | | | | | | | | Fixes #3420. Part of issue 3424. R=golang-dev, cldorian, adg, r CC=golang-dev https://golang.org/cl/5958046
* doc: various typos, remove apostrophes from ordinalsJeremy Jackins2012-03-191-1/+1
| | | | | | R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5845059
* doc: fix some HTML errors in code.htmlSanjay Menakuru2012-03-021-3/+3
| | | | | | R=golang-dev, rsc CC=adg, golang-dev https://golang.org/cl/5720050
* doc: expand code.html to discuss the go tool in more depthAndrew Gerrand2012-03-021-195/+354
| | | | | | R=golang-dev, balasanjay, r CC=golang-dev https://golang.org/cl/5640045
* doc: add a bunch of missing <p> tagsStefan Nilsson2012-02-291-1/+1
| | | | | | R=golang-dev, gri CC=golang-dev https://golang.org/cl/5707065
* doc: various updates to doc/code.htmlShenghou Ma2012-02-181-4/+5
| | | | | | R=golang-dev, adg, r CC=golang-dev https://golang.org/cl/5649068
* godoc: specify HTML page metadata with a JSON blobAndrew Gerrand2012-01-191-1/+3
| | | | | | | | | | | | | | | | | This allows HTML pages to specify arbitrary data in a header: <!--{ "Title": "The page title", ... }--> replacing the old style comments: <!-- title The page title --> R=gri, rsc, r, bradfitz, dsymonds CC=golang-dev https://golang.org/cl/5532093
* doc: update "How to Write Go Code" to use the go toolAndrew Gerrand2012-01-121-158/+131
| | | | | | R=golang-dev, r, kevlar, rsc CC=golang-dev https://golang.org/cl/5534045
* doc: there's no such thing as a .cgo fileAndrew Gerrand2011-03-041-1/+1
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/4264043
* doc: describe platform-specific conventions in code.htmlAndrew Gerrand2011-03-041-0/+44
| | | | | | R=r, rsc, gri CC=golang-dev https://golang.org/cl/4257049
* Make.pkg, doc: Replace references to "-benchmarks" and "-match" with ↵Kyle Consalus2011-02-221-1/+1
| | | | | | | | "-test.bench" and "-test.run". R=r CC=golang-dev https://golang.org/cl/4197041
* code.html: update to reflect that package names need not be uniqueRob Pike2011-02-121-3/+3
| | | | | | | | Fixes #1507. R=golang-dev, ehog.hedge, rsc CC=golang-dev https://golang.org/cl/4160049
* doc/code.html: fix reference to "gomake build"Anschel Schaffer-Cohen2010-11-291-1/+1
| | | | | | R=golang-dev, rsc CC=golang-dev https://golang.org/cl/3288042
* Documentation: how to write Makefiles for commands.Yves Junqueira2010-11-231-0/+26
| | | | | | | | Fixes #1282. R=adg CC=golang-dev https://golang.org/cl/3152041
* build: no required environment variablesRuss Cox2010-08-181-7/+15
| | | | | | R=adg, r, PeterGo CC=golang-dev https://golang.org/cl/1942044
* doc/code.html: fix error string formatAndrew Gerrand2010-06-011-1/+1
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/1444041
* doc/code: example package with testsAndrew Gerrand2010-05-301-0/+85
| | | | | | R=r CC=golang-dev https://golang.org/cl/1404041
* make it more explicit that design discussions should happen before code reviewsRob Pike2009-12-171-2/+3
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/180075
* Add a Makefile in place of all.bash. Update docs to reflectDevon H. O'Dell2009-12-111-2/+2
| | | | | | | | this change. R=rsc CC=golang-dev https://golang.org/cl/171048
* doc: split contribute.html into code.html and contribute.htmlRuss Cox2009-12-091-0/+204
R=r https://golang.org/cl/170042