mirror of
https://github.com/golang/go
synced 2024-11-25 23:58:02 -07:00
parent
07b6becc88
commit
79284cae32
@ -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() {
|
||||
@ -224,7 +224,7 @@ func (dir *Directory) lookup(path string) *Directory {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
return nil
|
||||
return nil;
|
||||
}
|
||||
|
||||
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));
|
||||
title = "Command " + pkgname;
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ func exec(c *http.Conn, args []string) (status int) {
|
||||
|
||||
|
||||
// Maximum directory depth, adjust as needed.
|
||||
const maxDirDepth = 24;
|
||||
const maxDirDepth = 24
|
||||
|
||||
func dosync(c *http.Conn, r *http.Request) {
|
||||
args := []string{"/bin/sh", "-c", *syncCmd};
|
||||
|
@ -125,7 +125,8 @@ func (p *ebnfParser) parseTerm() bool {
|
||||
|
||||
|
||||
func (p *ebnfParser) parseSequence() {
|
||||
for p.parseTerm() {}
|
||||
for p.parseTerm() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user