mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
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:
parent
11f4a6c9df
commit
8098d711f3
@ -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}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user