1
0
mirror of https://github.com/golang/go synced 2024-11-26 07:07:57 -07:00

gofmt'ed src/cmd

R=rsc
http://go/go-review/1024004
This commit is contained in:
Robert Griesemer 2009-11-05 22:25:46 -08:00
parent 07b6becc88
commit 79284cae32
4 changed files with 32 additions and 32 deletions

View File

@ -86,7 +86,7 @@ var (
) )
var fsTree RWValue; // *Directory tree of packages, updated with each sync var fsTree RWValue // *Directory tree of packages, updated with each sync
func init() { func init() {
@ -224,7 +224,7 @@ func (dir *Directory) lookup(path string) *Directory {
return d; return d;
} }
} }
return nil return nil;
} }
return dir.lookup(dpath).lookup(dname); return dir.lookup(dpath).lookup(dname);
@ -797,7 +797,7 @@ func (h *httpHandler) ServeHTTP(c *http.Conn, r *http.Request) {
_, pkgname := pathutil.Split(pathutil.Clean(path)); _, pkgname := pathutil.Split(pathutil.Clean(path));
title = "Command " + pkgname; title = "Command " + pkgname;
default: default:
title = "Command " + info.PDoc.PackageName title = "Command " + info.PDoc.PackageName;
} }
} }
@ -885,4 +885,3 @@ func indexer() {
time.Sleep(1*60e9); // try once a minute time.Sleep(1*60e9); // try once a minute
} }
} }

View File

@ -98,7 +98,7 @@ func exec(c *http.Conn, args []string) (status int) {
// Maximum directory depth, adjust as needed. // Maximum directory depth, adjust as needed.
const maxDirDepth = 24; const maxDirDepth = 24
func dosync(c *http.Conn, r *http.Request) { func dosync(c *http.Conn, r *http.Request) {
args := []string{"/bin/sh", "-c", *syncCmd}; args := []string{"/bin/sh", "-c", *syncCmd};

View File

@ -125,7 +125,8 @@ func (p *ebnfParser) parseTerm() bool {
func (p *ebnfParser) parseSequence() { func (p *ebnfParser) parseSequence() {
for p.parseTerm() {} for p.parseTerm() {
}
} }