summaryrefslogtreecommitdiff
path: root/src/cmd/godoc
AgeCommit message (Collapse)AuthorFilesLines
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý12-779/+1676
2010-07-01strings and bytes.Split: make count of 0 mean 0, not infinite.Rob Pike3-4/+4
Use a count of -1 for infinity. Ditto for Replace. R=rsc CC=golang-dev http://codereview.appspot.com/1704044 Committer: Rob Pike <r@golang.org>
2010-06-30godoc: canonicalize codewalk pathsAndrew Gerrand1-0/+5
R=rsc CC=golang-dev http://codereview.appspot.com/1729046
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-04-27godoc: use int64 for timestampsChristopher Wedgwood1-4/+3
This fixes a crash seen when viewing a directory list. Fixes issue 747. R=gri CC=golang-dev, rsc http://codereview.appspot.com/1010042 Committer: Robert Griesemer <gri@golang.org>
2010-04-26godoc: add codewalk supportRuss Cox3-2/+501
R=adg, gri CC=golang-dev, r http://codereview.appspot.com/1008042
2010-04-15"godoc -src pkg_name" excludes duplicates entriesAndrei Vieru1-1/+1
$ godoc xml | grep Copy\(\) func (c CharData) Copy() CharData func (c Comment) Copy() Comment func (d Directive) Copy() Directive func (p ProcInst) Copy() ProcInst func (e StartElement) Copy() StartElement -------------------------------------------- $ godoc -src xml | grep Copy\(\) func (c CharData) Copy() CharData -------------------------------------------- $ godoc -src xml Copy func (c CharData) Copy() CharData { return CharData(makeCopy(c)) } -------------------------------------------- The command "godoc -src pkg_name" should output the interface of the named package, but it excludes all duplicate entries. Also the command "godoc -src pkg_name method_name" will output the source code only for one method even if there are more of them with the same name in the same package. This patch set fixes this issue. R=gri CC=golang-dev http://codereview.appspot.com/883051 Committer: Robert Griesemer <gri@golang.org>
2010-04-11godoc: change od.Dir -> os.FileInfo in commentsChristopher Wedgwood1-2/+2
R=gri, r CC=golang-dev, rsc http://codereview.appspot.com/819042 Committer: Rob Pike <r@golang.org>
2010-04-09rename os.Dir to os.FileInfoRob Pike2-15/+15
R=rsc CC=golang-dev http://codereview.appspot.com/902042
2010-03-30godoc: support for title and subtitle headers when serving .html docsRobert Griesemer2-17/+27
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-30simplify various code using new map index ruleRuss Cox1-2/+2
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30single argument panicRuss Cox1-1/+1
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-29godoc: support for filtering of command-line output in -src modeRobert Griesemer3-26/+91
+ various minor cleanups Usage: godoc -src math Sin R=rsc CC=golang-dev http://codereview.appspot.com/791041
2010-03-29fix buildRuss Cox1-2/+2
R=gri CC=golang-dev http://codereview.appspot.com/837041
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: show relative file names without leading '/' (per r's request)Robert Griesemer1-4/+5
- change the various url-xxx formatters to return a relative URL path - make the leading '/' for URLs explicit in the template - on the way change some |html formatters to |html-esc (html should only be used for formatting AST nodes) R=rsc, r CC=golang-dev http://codereview.appspot.com/740041
2010-03-24godoc: use http GET for remote search instead of rpcRobert Griesemer2-53/+31
(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 Griesemer2-9/+13
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: revert change 5089, per gri's instructionsRuss Cox1-24/+3
R=gri CC=golang-dev http://codereview.appspot.com/630043
2010-03-19godoc: proper file path conversion for remote searchRobert Griesemer1-0/+24
R=rsc CC=golang-dev http://codereview.appspot.com/664041
2010-03-19godoc: show (some) line numbers for remote searchRobert Griesemer2-30/+27
- show build version - use build goroot when possible R=rsc CC=golang-dev http://codereview.appspot.com/656043
2010-03-19godoc: improved comment formatting: recognize URLsRobert Griesemer1-1/+3
and highlight special words, if provided. Also: - related cleanups in src/pkg/go/doc/comment.go - fix typos in src/cmd/goinstall/doc.go Fixes issue 672. R=rsc CC=adg, golang-dev http://codereview.appspot.com/601042
2010-03-19godoc: implemented command-line searchRobert Griesemer3-15/+121
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-16godoc: initial support for showing popup informationRobert Griesemer1-6/+65
for identifiers in Go source code - at the moment just show identifier kind (var, func, etc.) and name (eventually should show declaration, type, etc.) - JavaScript parts by adg R=rsc CC=adg, golang-dev http://codereview.appspot.com/578042
2010-03-12godoc: support for multiple packages in a directoryRobert Griesemer2-27/+64
- smartly select the "right" package - provide a list of other packages R=rsc CC=golang-dev http://codereview.appspot.com/466042
2010-03-11godoc: fix formatting of -src outputRobert Griesemer1-1/+1
- go/filter.go: make MergePackageFiles smarter - go/printer.go: handle positions from multiple files R=rsc CC=golang-dev http://codereview.appspot.com/460042
2010-03-10godoc: change -x to -src, update doc.go (missed in previous CL)Robert Griesemer2-1/+3
R=rsc CC=golang-dev http://codereview.appspot.com/384044
2010-03-10godoc: provide mode which shows exported interface in "source form"Robert Griesemer2-16/+29
- 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-03-02gofmt: fix alignment of multi-line var declarationsRobert Griesemer1-5/+5
- gofmt -w src misc R=rsc, r CC=golang-dev http://codereview.appspot.com/223101
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer2-27/+27
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-25go/printer, gofmt: align comments in multi-line expression listsRobert Griesemer1-1/+1
- gofmt -w src misc - improves several lists and fixes minor degradation introduced with the fix for issue 628 - removed some dead code (stringList) R=rsc CC=golang-dev http://codereview.appspot.com/223058
2010-02-25strings: delete Runes, BytesRuss Cox4-19/+17
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
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-19- removed exp/parser (support for old semicolon syntax)Robert Griesemer1-6/+2
- go/ast: removed StringList (not needed anymore) - go/ast: changed import path and field list tag to a single string - updated all dependencies R=rsc CC=golang-dev http://codereview.appspot.com/217056
2010-02-19godoc: make commandline use work againRobert Griesemer2-10/+7
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 Griesemer3-36/+20
pages R=rsc CC=adg, golang-dev http://codereview.appspot.com/215050
2010-02-16godoc: updated documentationRobert Griesemer2-8/+24
R=r CC=golang-dev http://codereview.appspot.com/207112
2010-02-16godoc: initialize vars depending on flags after parsing the flags.Robert Griesemer2-1/+4
R=rsc CC=golang-dev http://codereview.appspot.com/206109
2010-02-16godoc: fix initialization issueRobert Griesemer2-2/+1
R=rsc CC=golang-dev http://codereview.appspot.com/207111
2010-02-16godoc support for directories outside $GOROOTRobert Griesemer4-253/+310
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-11correct meaning of "absolute" and "relative"Robert Griesemer1-15/+15
(implementation was swapped) R=adg CC=golang-dev, rsc http://codereview.appspot.com/207069
2010-02-11Steps towards more flexible godoc:Robert Griesemer1-0/+176
The Mapping object implements a flexible mapping of relative to absolute paths and vice versa. R=rsc CC=golang-dev http://codereview.appspot.com/206067
2010-02-06Ugly hack to provide some mechanism for printing documentation aboutRob Pike2-2/+38
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 Griesemer2-7/+8
R=rsc CC=golang-dev http://codereview.appspot.com/199045
2010-02-01Fix redirection if the page is in a subdirectory.Rob Pike1-0/+3
Fixes buggy links in the devel subdirectory. Code from rsc; tested by me. R=rsc, gri CC=golang-dev http://codereview.appspot.com/197041
2010-01-27More steps towards tracking of identifier scopes.Robert Griesemer2-4/+4
- provide scope to parse functions; if non-nil, parser uses the scope to declare and lookup identifiers - resolve forward references where possible R=rsc CC=golang-dev http://codereview.appspot.com/194098
2010-01-22Trim space on input to make searching more robust.Christopher Wedgwood1-1/+1
R=rsc, r, gri CC=golang-dev http://codereview.appspot.com/186255 Committer: Rob Pike <r@golang.org>