Life As A Software Engineer

s VS s[:]

s[:] is always a slice. But s can be one of these A array or A pointer to array or A slice https://play.golang.org/p/r2nc-FAmjg Read more →

XML omitempty with enclosed elements

omitempty is only used in marshalling. But it does not work with enclosed elements. https://play.golang.org/p/DEgzD3rwhw http://stackoverflow.com/questions/27246275/golang-hide-xml-parent-tag-if-empty Read more →

XML cdata tag

cdata tag is used in marshalling. It is not needed in unmarshalling. https://play.golang.org/p/xEXFBCkC29 Read more →

First

This is the beginning post of the new site. $ ls Read more →