tiaguinho / gosoap

🦉SOAP package for Go
MIT License
507 stars 176 forks source link

Automatic xml encoding for structs #82

Open pmh1wheel opened 2 years ago

pmh1wheel commented 2 years ago

This leaves the struct handling alone in recursiveEncode, which is designed to deal with individual xml.Tokens.

Instead, we just use xml.Encode for top-level structs, and leave the formatting up to the struct tags, which allow for plenty of control