Discover Packages
github.com/cloudevents/sdk-go/v2
event
datacodec
xml
package
Version:
v2.4.1
Opens a new window with list of versions in this module.
Published: Apr 14, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package xml holds the encoder/decoder implementation for `application/xml`.
Decode takes `in` as []byte.
If Event sent the payload as base64, Decoder assumes that `in` is the
decoded base64 byte array.
Encode attempts to xml.Marshal `in` into bytes. Encode will inspect `in`
and returns `in` unmodified if it is detected that `in` is already a []byte;
Or xml.Marshal errors.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.