alloyjson

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package alloyjson encodes Alloy configuration syntax 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 Alloy. MarshalBody panics if not given a struct with alloy tags or a map[string]any.

func MarshalValue

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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