gyaml

package
v2.7.7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gyaml provides accessing and converting for YAML content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(content []byte) (map[string]interface{}, error)

Decode parses `content` into and returns as map.

func DecodeTo

func DecodeTo(value []byte, result interface{}) (err error)

DecodeTo parses `content` into `result`.

func Encode

func Encode(value interface{}) (out []byte, err error)

Encode encodes `value` to an YAML format content as bytes.

func EncodeIndent

func EncodeIndent(value interface{}, indent string) (out []byte, err error)

EncodeIndent encodes `value` to an YAML format content with indent as bytes.

func ToJson

func ToJson(content []byte) (out []byte, err error)

ToJson converts `content` to JSON format content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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