package
2.15.2
Repository: https://github.com/cloudevents/sdk-go.git
Documentation: pkg.go.dev

# Functions

Add a new Format.
IsFormat returns true if mediaType begins with "application/cloudevents".
Lookup returns the format for contentType, or nil if not found.
Marshal an event to bytes using the mediaType event format.
Unmarshal bytes to an event using the mediaType event format.

# Constants

Prefix for event-format media types.

# Variables

JSON is the built-in "application/cloudevents+json" format.
JSONBatch is the built-in "application/cloudevents-batch+json" format.

# Interfaces

Format marshals and unmarshals structured events to bytes.