The standard for namespaces is https://www.w3.org/TR/xml-names/ is incompletely supported by Go lang. Related issues are mainly listed in #13400.
Purpose of the repository is to ease development and testing of the complete set of patches against the real world. History of work is out of the scope and updates of the package occur for language changes and other reasons. Commits will be rewritten with updates of tip of package from Go source code and patches when updated.
Changes for patches can be followed on Gerrit.
- recognize xmlns as reserved (gerrit-patch)
- disallow empty namespace when prefix is set (gerrit-patch)
- support xml namespace prefix (gerrit-patch)
- embedded struct with XMLName field not being ignored (gerrit-patch)
- indent even when both indent and prefix are empty (gerrit-patch)
- add whitespace normalization from spec (gerrit-patch)
Some comments in related issues might also be of value.
Download the patch file of interest from this repository by accessing Gerrit.
Something like git am 0001....patch
should apply the patch to your go source code.
Git clone as usual. The repository is an ordinary module which can be imported as usual.
-
A folder using the src/ directory to match patches was cumbersome to use since the availability of Go workspace.
-
A general fix based on Go 1.11 is abandoned for several reasons. Branch
go111
has an archive of this global fix.