cmd/go: fix 'go help <command>'

It depended on the old behavior of functions in structs.

R=golang-dev, rsc
CC=golang-dev, r
https://golang.org/cl/5656076
This commit is contained in:
Bobby Powers 2012-02-16 14:05:17 -05:00 committed by Russ Cox
parent 11f4a6c9df
commit 8098d711f3

View file

@ -157,7 +157,7 @@ Use "go help [topic]" for more information about that topic.
`
var helpTemplate = `{{if .Run}}usage: go {{.UsageLine}}
var helpTemplate = `{{if .Runnable}}usage: go {{.UsageLine}}
{{end}}{{.Long | trim}}
`
@ -169,7 +169,7 @@ var documentationTemplate = `// Copyright 2011 The Go Authors. All rights reser
/*
{{range .}}{{if .Short}}{{.Short | capitalize}}
{{end}}{{if .Run}}Usage:
{{end}}{{if .Runnable}}Usage:
go {{.UsageLine}}