summaryrefslogtreecommitdiff
path: root/src/cmd/godoc/godoc.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+1159
2011-09-13Imported Upstream version 60Ondřej Surý1-1299/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-30/+32
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-13/+22
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-1/+10
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-36/+46
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-47/+57
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-81/+39
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-575/+456
2010-07-01strings and bytes.Split: make count of 0 mean 0, not infinite.Rob Pike1-2/+2
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-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 Cox1-2/+7
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 Pike1-11/+11
R=rsc CC=golang-dev http://codereview.appspot.com/902042
2010-03-30godoc: support for title and subtitle headers when serving .html docsRobert Griesemer1-16/+26
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-29godoc: support for filtering of command-line output in -src modeRobert Griesemer1-7/+21
+ 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-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 Griesemer1-22/+6
(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-4/+10
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 Griesemer1-26/+21
- 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 Griesemer1-4/+34
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-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 Griesemer1-25/+60
- 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: provide mode which shows exported interface in "source form"Robert Griesemer1-12/+24
- 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 Griesemer1-26/+26
- 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 Cox1-13/+13
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: make commandline use work againRobert Griesemer1-8/+5
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-27/+14
pages R=rsc CC=adg, golang-dev http://codereview.appspot.com/215050
2010-02-16godoc: updated documentationRobert Griesemer1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/207112
2010-02-16godoc: initialize vars depending on flags after parsing the flags.Robert Griesemer1-1/+3
R=rsc CC=golang-dev http://codereview.appspot.com/206109
2010-02-16godoc: fix initialization issueRobert Griesemer1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/207111
2010-02-16godoc support for directories outside $GOROOTRobert Griesemer1-229/+254
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-2/+28
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-5/+6
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 Griesemer1-3/+3
- 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>
2010-01-15 Steps towards tracking scopes for identifiers.Robert Griesemer1-4/+4
- Identifiers refer now to the language entity (Object) that they denote. At the moment this is at best an approximation. - Initial data structures for language entities (Objects) and expression types (Type) independent of the actual type notations. - Initial support for declaring and looking up identifiers. - Updated various dependent files and added support functions. - Extensively tested to avoid breakage. This is an AST change. R=rsc CC=golang-dev, rog http://codereview.appspot.com/189080
2010-01-13Distinguish between html generation and html quoting in godoc formatters.Robert Griesemer1-0/+9
Replacement for CL 184084; originally by Roger Peppe (rogpeppe@gmail.com). R=rsc CC=golang-dev, rog http://codereview.appspot.com/189059
2010-01-13godoc: skip template wrapping for complete HTML filesRuss Cox1-0/+22
demo at http://wreck:8080/doc/ click on go_talk-20100112.html R=gri CC=golang-dev http://codereview.appspot.com/186137
2010-01-11Remove -oldprinter flag from gofmt; all code isRobert Griesemer1-1/+1
now printed using the semicolon-free style. Removed NoSemis flag and mechanism dealing with optional semicolons from go/printer. Updated all go/printer output files using the semi-colon free style. Changes have no formatting impact on checked in go code under src and misc. R=rsc, r CC=golang-dev http://codereview.appspot.com/184068