Descriptiongo/ast: ast.Print must not crash with unexported fields
Don't print unexported struct fields; their values are
not accessible via reflection.
Fixes issue 3898.
Also:
- added support for arrays
- print empty maps, arrays, slices, structs on one line
for a denser output
- added respective test cases
Patch Set 1 #Patch Set 2 : diff -r d441ebed2b51 https://code.google.com/p/go #Patch Set 3 : diff -r d441ebed2b51 https://code.google.com/p/go #
Total comments: 1
Patch Set 4 : diff -r 853668b30673 https://code.google.com/p/go #
MessagesTotal messages: 3
|