xmlsec is a major, serious, crazy, difficult to implement specification.
At least, the fully conformant spec is. Because along the path to signing something (or verifying the signature for something), you can "transform" the XML. Which can involve XPath selection, XSLT transforms, and one of multiple forms of canonicalization. I did some work related to Apache Santuario project, and was surprised along the way to discover that to be fully conformant, you need XPath 1.0, and XSLT 1.0 support. So - not an easy task to re-implement. And certainly, the Go primitives aren't going to get you there.
Eric.