outputter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPrefixAndIdent

func WithPrefixAndIdent(prefix, ident string) func(j *JSON)

Types

type JSON

type JSON struct {
	// contains filtered or unexported fields
}

func NewJSON

func NewJSON(opts ...JSONOpt) *JSON

func (*JSON) Marshal

func (j *JSON) Marshal(content any) (string, error)

type JSONOpt

type JSONOpt func(json *JSON)

type YAML

type YAML struct{}

func NewYAML

func NewYAML(opts ...YAMLOpt) *YAML

func (*YAML) Marshal

func (y *YAML) Marshal(content any) (string, error)

type YAMLOpt

type YAMLOpt func(y *YAML)

Jump to

Keyboard shortcuts

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