go/src/cmd/doc
Rob Pike 2c47c3e22e cmd/doc: implement "go doc struct.field"
By analogy with the handling of methods on types, show the documentation
for a single field of a struct.

	% go doc ast.structtype.fields
	struct StructType {
	    Fields *FieldList  // list of field declarations
	}
	%

Fixes #19169.

Change-Id: I002f992e4aa64bee667e2e4bccc7082486149842
Reviewed-on: https://go-review.googlesource.com/38438
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-03-22 05:37:50 +00:00
..
testdata cmd/doc: truncate long lists of arguments 2017-02-24 10:52:50 +00:00
dirs.go cmd/doc: continue searching after error reading directory 2016-10-24 15:25:33 +00:00
doc_test.go cmd/doc: implement "go doc struct.field" 2017-03-22 05:37:50 +00:00
main.go cmd/doc: implement "go doc struct.field" 2017-03-22 05:37:50 +00:00
pkg.go cmd/doc: implement "go doc struct.field" 2017-03-22 05:37:50 +00:00