Examples using... os.Stdout.Write()
Recent
MarshalIndent works like Marshal, but each XML element begins on a new
indented line that starts with prefix and is followed by one or more
copies of indent according to the nesting depth.
This example uses RawMessage to use a precomputed JSON during marshal.
Marshal returns the JSON encoding of v.
TrimSuffix returns s without the provided trailing suffix string.
If s doesn't end with suffix, s is returned unchanged.