parsejy

package
v0.0.0-...-a71d288 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupByPrefix

func GroupByPrefix(arr []string, groupByFirst int, substractString int) (result string, err error)

func MagicStringArray

func MagicStringArray(str string, groupByFirst int) (jso string, err error)

func Parse

func Parse(queryString string, input []byte, syntax Syntax) (err error)

func ParseFile

func ParseFile(queryString string, file string, syntax Syntax) (err error)

func TransformJsonToYaml

func TransformJsonToYaml(jso []byte) (y []byte, err error)

func TransformYamlToJson

func TransformYamlToJson(yam []byte) (jso []byte, err error)

Types

type Syntax

type Syntax string
const JsonSyntax Syntax = "JSON"
const YamlSyntax Syntax = "YAML"

Jump to

Keyboard shortcuts

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