summaryrefslogtreecommitdiff
path: root/src/cmd/godoc/main.go
AgeCommit message (Collapse)AuthorFilesLines
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-38/+42
2010-03-30godoc: support for title and subtitle headers when serving .html docsRobert Griesemer1-1/+1
and use it to show version (date) of go spec Fixes issue 68. R=rsc CC=golang-dev, r http://codereview.appspot.com/848042
2010-03-30godoc: don't print package clause in -src command-line mode with filteringRobert Griesemer1-1/+12
R=rsc CC=golang-dev http://codereview.appspot.com/844041
2010-03-29godoc: support for filtering of command-line output in -src modeRobert Griesemer1-15/+62
+ various minor cleanups Usage: godoc -src math Sin R=rsc CC=golang-dev http://codereview.appspot.com/791041
2010-03-29runtime: more malloc statisticsRuss Cox1-1/+2
expvar: default publishings for cmdline, memstats godoc: import expvar R=r CC=golang-dev http://codereview.appspot.com/815041
2010-03-26godoc: export pprof debug informationRuss Cox1-0/+1
R=gri CC=golang-dev http://codereview.appspot.com/784041
2010-03-24godoc: use http GET for remote search instead of rpcRobert Griesemer1-31/+25
(this will allow the use of golang.org for remote searches) R=rsc CC=golang-dev http://codereview.appspot.com/734041
2010-03-19godoc: line numbers for all remote search resultsRobert Griesemer1-5/+3
Instead of returning the index lookup result via RPC which has to be corrected for the client, simply render it on the server and return the final output. R=rsc, r CC=golang-dev http://codereview.appspot.com/669041
2010-03-19godoc: show (some) line numbers for remote searchRobert Griesemer1-4/+6
- show build version - use build goroot when possible R=rsc CC=golang-dev http://codereview.appspot.com/656043
2010-03-19godoc: implemented command-line searchRobert Griesemer1-8/+68
The command-line search is using a running webserver as index server; i.e., the search result is reflecting the index at the server. See the documentation for details. Usage: godoc -q query1 query2 ... Known issue: Results don't show the all-important line numbers yet due to the way the index is organized. Next CL. R=rsc, r CC=golang-dev http://codereview.appspot.com/648041
2010-03-16gofmt: more consistent formatting of const/var declsRobert Griesemer1-2/+2
- gofmt -w src misc - only manually modified file: src/pkg/go/printer/nodes.go R=rsc CC=golang-dev, r http://codereview.appspot.com/606041
2010-03-12godoc: support for multiple packages in a directoryRobert Griesemer1-2/+4
- smartly select the "right" package - provide a list of other packages R=rsc CC=golang-dev http://codereview.appspot.com/466042
2010-03-10godoc: change -x to -src, update doc.go (missed in previous CL)Robert Griesemer1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/384044
2010-03-10godoc: provide mode which shows exported interface in "source form"Robert Griesemer1-4/+5
- on the commandline: godoc -x big - in a webpage: provide form parameter ?m=src Known issues: - Positioning of comments incorrect in several cases. Separate CL. - Need a link/menu to switch between different modes of presentation in the web view. R=rsc CC=golang-dev http://codereview.appspot.com/376041
2010-02-19godoc: fix path resolution for command-line one more time (sigh...)Robert Griesemer1-2/+21
R=rsc CC=golang-dev http://codereview.appspot.com/217058
2010-02-19godoc: make commandline use work againRobert Griesemer1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/216054
2010-02-18godoc: path cleanups, fixed a race condition, initial support for a menu on ↵Robert Griesemer1-3/+6
pages R=rsc CC=adg, golang-dev http://codereview.appspot.com/215050
2010-02-16godoc: initialize vars depending on flags after parsing the flags.Robert Griesemer1-0/+1
R=rsc CC=golang-dev http://codereview.appspot.com/206109
2010-02-16godoc: fix initialization issueRobert Griesemer1-1/+0
R=rsc CC=golang-dev http://codereview.appspot.com/207111
2010-02-16godoc support for directories outside $GOROOTRobert Griesemer1-19/+10
Example use: godoc -path=/home/user1:/home/build/foo -http=:6666 will start a local godoc that maps urls starting with /pkg/user1 or /pkg/foo to the respective roots specified in the path. Missing: Handling of overlapping package directories, multiple packages per directory. R=rsc CC=golang-dev http://codereview.appspot.com/206078
2010-02-06Ugly hack to provide some mechanism for printing documentation aboutRob Pike1-0/+10
Go source outside $GOROOT. If the argument is a path starting with / or ., disregard $GOROOT. Also, disable the check for package name matching the directory, which is counterproductive in this case. Apologies for the violence to the code but we need some help documenting Go code outside the standard repository. R=gri CC=golang-dev http://codereview.appspot.com/201064 Committer: Rob Pike <r@golang.org>
2010-02-01don't report a couple of meaningless errors in command-line modeRobert Griesemer1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/199045
2009-12-15 1) Change default gofmt default settings forRobert Griesemer1-71/+71
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer1-1/+1
R=rsc http://codereview.appspot.com/172041
2009-12-01some godoc cleanup:Robert Griesemer1-2/+1
- simplified dealing with parse errors: no need to intersperse them in the source - improve visibility of highlighted identifiers by showing them in bold R=rsc http://codereview.appspot.com/163051
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-1/+1
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-2/+2
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1024040
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-13/+13
R=rsc, r http://go/go-review/1025029
2009-11-08- exit godoc w/o crashing if negative tabwidth is providedRobert Griesemer1-10/+9
- minor related cleanups R=rsc http://go/go-review/1025026
2009-11-08a nagging inconsistency: capitalization ofRuss Cox1-4/+4
HTML vs Html, URL vs Url, HTTP vs Http, current source is 6:1 in favor of the former, so change instances of the latter. R=r CC=go-dev http://go/go-review/1024026
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-3/+1
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt'ed src/cmdRobert Griesemer1-4/+4
R=rsc http://go/go-review/1024004
2009-11-03support for command documentation:Robert Griesemer1-8/+13
- made package tree handler generic so it can work on any fs tree - cleanups along the way R=rsc CC=r http://go/go-review/1017020
2009-11-02- show recursive package directory structure in package pagesRobert Griesemer1-7/+17
- removed some underbars in section headings for better looks - various minor tweaks R=rsc http://go/go-review/1018026
2009-11-02- initial steps towards showing directory tree instead ofRobert Griesemer1-8/+17
just a single directory - all pieces present but not well integrated - directory tree served at the moment under /tree R=rsc http://go/go-review/1018016
2009-11-01reverse the arguments to io.Copy so the destination is on theRob Pike1-1/+1
left, like an assignment, like strcpy, etc. R=rsc CC=go-dev http://go/go-review/1016011
2009-11-01don't update sync time if no files have changedRobert Griesemer1-12/+18
(and thus avoid re-indexing after every sync attempt) R=rsc http://go/go-review/1016010
2009-10-30split godoc/godoc.go into godoc/godoc.goRuss Cox1-0/+212
and godoc/main.go. R=gri CC=r http://go/go-review/1017005