From 70db237169c35367d6e2b0a13e3b6892849b3c35 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 8 Mar 2012 16:09:49 +1100 Subject: [PATCH] doc: add go command notes to the Go 1 doc Fixes #2912. R=golang-dev, r CC=golang-dev https://golang.org/cl/5783048 --- doc/go1.html | 20 +++++++++++++++++++- doc/go1.tmpl | 20 +++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/doc/go1.html b/doc/go1.html index d09b1d398f4..8d61363745d 100644 --- a/doc/go1.html +++ b/doc/go1.html @@ -2087,7 +2087,25 @@ The semantic changes make it difficult for the fix tool to update automatically.

The go command

-TODO: Write this. +Go 1 introduces the go command, a tool for fetching, +building, and installing Go packages and commands. The go command +does away with makefiles, instead using Go source code to find dependencies and +determine build conditions. Most existing Go programs will no longer require +makefiles to be built. +

+ +

+See How to Write Go Code for a primer on the +go command and the go command documentation +for the full details. +

+ +

+Updating: +Projects that depend on the Go project's old makefile-based build +infrastructure (Make.pkg, Make.cmd, and so on) should +switch to using the go command for building Go code and, if +necessary, rewrite their makefiles to perform any auxiliary build tasks.

The cgo command

diff --git a/doc/go1.tmpl b/doc/go1.tmpl index 0f89e9d5ba7..dd72404c33c 100644 --- a/doc/go1.tmpl +++ b/doc/go1.tmpl @@ -1959,7 +1959,25 @@ The semantic changes make it difficult for the fix tool to update automatically.

The go command

-TODO: Write this. +Go 1 introduces the go command, a tool for fetching, +building, and installing Go packages and commands. The go command +does away with makefiles, instead using Go source code to find dependencies and +determine build conditions. Most existing Go programs will no longer require +makefiles to be built. +

+ +

+See How to Write Go Code for a primer on the +go command and the go command documentation +for the full details. +

+ +

+Updating: +Projects that depend on the Go project's old makefile-based build +infrastructure (Make.pkg, Make.cmd, and so on) should +switch to using the go command for building Go code and, if +necessary, rewrite their makefiles to perform any auxiliary build tasks.

The cgo command