1
0
mirror of https://github.com/golang/go synced 2024-10-04 18:21:21 -06:00
go/src/pkg
Robert Griesemer 198936f2b8 go/doc, godoc: move export filtering into go/doc
- exports.go contains a stripped-down (but semantically unchanged)
  version of the code in go/ast/filter.go for export filtering
- filter.go contains the documentation filtering code found before
  at the end of doc.go; this is simply a code move w/o any semantic
  changes
- godoc now relies on go/doc for export filtering when creating
  documentation. It still has a separate form of export filtering
  for showing the source code version. This needs to be consolidated
  (perhaps the source form view should just be removed?).
- Stripping of function bodies (stripFunctionBodies function of
  godoc.go) is now happening in doc.go (line 176).
- doc.NewPackageDoc has an extra parameter "exportsOnly. If set
  to false, the behavior is as before. This function is only called
  once in our source code; a gofix module is probably not warranted.
- Deleted doc.NewFileDoc - was never called.

This change is mostly a code move w/ some minimal tweaks. It should
not cause any changes to the behavior of godoc. It's a prerequisite
for extracting anonymous embedded fields.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5502072
2011-12-22 15:28:15 -08:00
..
archive zip: fix data race in test 2011-12-19 15:40:10 -08:00
bufio bufio: make the minimum read buffer size 16 bytes. 2011-12-13 15:07:17 -08:00
builtin builtin: document delete 2011-11-09 10:49:41 -08:00
bytes panics: use the new facilities of testing.B instead 2011-12-20 10:36:25 -08:00
compress gzip: Convert between Latin-1 and Unicode 2011-12-14 17:17:40 -05:00
container container/heap: document what Push and Pop do 2011-11-03 15:30:57 -04:00
crypto crypto/x509: don't crash with nil receiver in accessor method 2011-12-21 10:49:35 -08:00
debug go/build: add new +build tags 'cgo' and 'nocgo' 2011-12-21 08:51:18 -05:00
encoding panics: use the new facilities of testing.B instead 2011-12-20 10:36:25 -08:00
errors errors: new package 2011-11-01 21:46:59 -04:00
exp exp/terminal: several cleanups 2011-12-22 11:23:57 -05:00
expvar expvar: fix typo in Publish documentation 2011-12-09 14:24:51 -08:00
flag use new strconv API 2011-12-05 15:48:46 -05:00
fmt fmt: make the malloc test check its counts 2011-12-22 15:16:06 -08:00
go go/doc, godoc: move export filtering into go/doc 2011-12-22 15:28:15 -08:00
hash hash/crc32: make compatible with go/build 2011-12-14 10:25:16 -05:00
html html: handle breakout tags in foreign content. 2011-12-21 10:00:41 +11:00
image image/ycbcr: move the Y'CbCr types into image and image/color. 2011-12-21 10:29:21 +11:00
index/suffixarray renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* 2011-11-08 15:40:58 -08:00
io io/ioutil: close file in TestWriteFile before deleting it 2011-12-19 17:30:14 +11:00
log go/printer, gofmt: fine tuning of line spacing 2011-12-16 15:43:06 -08:00
math math/big: Rand shouldn't hang if argument is also receiver. 2011-12-22 14:15:41 -08:00
mime crypto/mime/net/time: add netbsd to +build tags 2011-12-21 21:44:47 +11:00
net go/build: add new +build tags 'cgo' and 'nocgo' 2011-12-21 08:51:18 -05:00
old panics: use the new facilities of testing.B instead 2011-12-20 10:36:25 -08:00
os os: update package location of exec to os/exec in comments 2011-12-22 07:25:43 -08:00
patch Add a []byte argument to hash.Hash to allow an allocation to be saved. 2011-12-01 12:35:37 -05:00
path path: Dir 2011-12-22 14:08:34 -08:00
reflect reflect: fix Slice cap 2011-12-12 19:45:40 -02:00
regexp panics: use the new facilities of testing.B instead 2011-12-20 10:36:25 -08:00
runtime runtime: don't panic on SIGILL, just crash 2011-12-21 15:45:36 -08:00
sort go/printer, gofmt: fine tuning of line spacing 2011-12-16 15:43:06 -08:00
strconv strconv: fix bug in extended-float based conversion. 2011-12-22 17:28:35 -05:00
strings panics: use the new facilities of testing.B instead 2011-12-20 10:36:25 -08:00
sync allow copy of struct containing unexported fields 2011-11-15 12:20:59 -05:00
syscall syscall: make pipe work on netbsd 2011-12-23 02:47:48 +11:00
testing testing: fix the fix to the wording about the bug 2011-12-22 11:23:10 -08:00
text template: better error message for empty templates 2011-12-20 12:58:23 -08:00
time crypto/mime/net/time: add netbsd to +build tags 2011-12-21 21:44:47 +11:00
unicode various: use $GCFLAGS and $GCIMPORTS like Make does 2011-12-16 11:31:39 -05:00
unsafe unsafe: update doc 2011-08-31 17:59:35 -04:00
websocket websocket: fix a trivial example server 2011-12-16 14:24:37 -08:00
deps.bash renaming_1: hand-edited files for go 1 renaming 2011-11-08 15:38:47 -08:00
Makefile image/ycbcr: move the Y'CbCr types into image and image/color. 2011-12-21 10:29:21 +11:00