Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONBytes

func JSONBytes(event v2.Event) ([]byte, error)

JSONBytes returns the JSON encoding of event.

func Payload added in v1.5.0

func Payload(event *v2.Event) ([]byte, error)

Payload returns what a driver sends for event: the whole event as JSON or, when its "target" extension is "data", only its data as JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL