• Gustavo Niemeyer's avatar
    encoding/xml: improve []byte handling · 57007fe1
    Gustavo Niemeyer authored
    Marshalling of []byte in attributes and the general
    marshalling of named []byte types was fixed.
    
    A []byte field also won't be nil if an XML element
    was mapped to it, even if the element is empty.
    
    Tests were introduced to make sure that *struct{}
    fields works correctly for element presence testing.
    No changes to the logic made in that regard.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/5539070
    57007fe1
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...