On Wed, 18 Jan 2017, at 02:23 PM, Tomi Häsä wrote:
> What is the difference between XML Encoder and Marshal (or
> MarshalIndent)? They both are used when writing to a stream. When do
> you use Encoder?
Marshal doesn't write to a stream. It returns a byte slice which you
could then use directly
What is the difference between XML Encoder and Marshal (or MarshalIndent)?
They both are used when writing to a stream. When do you use Encoder?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving em