]> Cypherpunks repositories - gostls13.git/commit
go/doc: streamlined go/doc API
authorRobert Griesemer <gri@golang.org>
Fri, 13 Jan 2012 01:36:57 +0000 (17:36 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 13 Jan 2012 01:36:57 +0000 (17:36 -0800)
commiteac31c67a8fd94b9e91043a40b3a3cb1bf6daa4f
tree8e89723af569fca62c8cf3d2b9c8b5ef1f9a0a00
parent4f63cdc81ff3f401a04457036e2c08f71bab7ccf
go/doc: streamlined go/doc API

- the main changes are removing the Doc suffix
  from the exported types, so instead of
  doc.TypeDoc one will have doc.Type, etc.

- All exported types now have a Name (or Names) field.
  For Values, the Names field lists all declared variables
  or constants.

- Methods have additional information about where they are
  coming from.

- There's a mode field instead of a bool to
  control the package's operation, which makes
  it easier to extend w/o API changes.

Except for the partially implemented new Method type,
this is based on existing code. A clean rewrite is in
progress based on this new API.

R=rsc, kevlar
CC=golang-dev
https://golang.org/cl/5528060
lib/godoc/package.html
lib/godoc/package.txt
misc/dashboard/builder/package.go
src/cmd/godoc/godoc.go
src/pkg/go/doc/doc.go
src/pkg/go/doc/doc_test.go
src/pkg/go/doc/filter.go
src/pkg/go/doc/reader.go