From 3a3add415c270057942ef09bbb295e135e2c0bf1 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 16 May 2013 05:51:35 -0400 Subject: [PATCH] initialize --- gpm.go | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/gpm.go b/gpm.go index 2c0a1ab3f..88fb0b826 100644 --- a/gpm.go +++ b/gpm.go @@ -178,29 +178,6 @@ var helpTemplate = `{{if .Runnable}}usage: go {{.UsageLine}} {{end}}{{.Long | trim}} ` -var documentationTemplate = `// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// DO NOT EDIT THIS FILE. GENERATED BY mkdoc.sh. -// Edit the documentation in other files and rerun mkdoc.sh to generate this one. - -/* -{{range .}}{{if .Short}}{{.Short | capitalize}} - -{{end}}{{if .Runnable}}Usage: - - go {{.UsageLine}} - -{{end}}{{.Long | trim}} - - -{{end}}*/ -package main - -// NOTE: cmdDoc is in fmt.go. -` - // tmpl executes the given template text on data, writing the result to w. func tmpl(w io.Writer, text string, data interface{}) { t := template.New("top") @@ -242,15 +219,6 @@ func help(args []string) { arg := args[0] - // 'go help documentation' generates doc.go. - if arg == "documentation" { - buf := new(bytes.Buffer) - printUsage(buf) - usage := &Command{Long: buf.String()} - tmpl(os.Stdout, documentationTemplate, append([]*Command{usage}, commands...)) - return - } - for _, cmd := range commands { if cmd.Name() == arg { tmpl(os.Stdout, helpTemplate, cmd)