riverjson

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package riverjson encodes River as JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalBody

func MarshalBody(val interface{}) ([]byte, error)

MarshalBody marshals the provided Go value to a JSON representation of River. MarshalBody panics if not given a struct with River tags.

func MarshalValue

func MarshalValue(val interface{}) ([]byte, error)

MarshalValue marshals the provided Go value to a JSON representation of River.

Types

This section is empty.

Jump to

Keyboard shortcuts

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