jsonyaml

package
v0.0.68 Latest Latest
Warning

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

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

Documentation

Overview

Package jsonyaml contains utility functions for converting to/from json and yaml

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertJsonToYaml

func ConvertJsonToYaml(content json.RawMessage) (string, error)

ConvertJsonToYaml converts json to yaml

func ConvertYamlToJson

func ConvertYamlToJson(content string) (json.RawMessage, error)

ConvertYamlToJson converts yaml to json

func TranscodeJSONToYAML

func TranscodeJSONToYAML(r io.Reader, w io.Writer) error

TranscodeJSONToYAML transcodes JSON to YAML

func TranscodeYAMLToJSON

func TranscodeYAMLToJSON(r io.Reader, w io.Writer) error

TranscodeYAMLToJSON transcodes YAML to JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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