Commit 8098d711 authored by Bobby Powers's avatar Bobby Powers Committed by Russ Cox

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
parent 11f4a6c9
...@@ -157,7 +157,7 @@ Use "go help [topic]" for more information about that topic. ...@@ -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}} {{end}}{{.Long | trim}}
` `
...@@ -169,7 +169,7 @@ var documentationTemplate = `// Copyright 2011 The Go Authors. All rights reser ...@@ -169,7 +169,7 @@ var documentationTemplate = `// Copyright 2011 The Go Authors. All rights reser
/* /*
{{range .}}{{if .Short}}{{.Short | capitalize}} {{range .}}{{if .Short}}{{.Short | capitalize}}
{{end}}{{if .Run}}Usage: {{end}}{{if .Runnable}}Usage:
go {{.UsageLine}} go {{.UsageLine}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment