parse

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Overview

Commands used to load and parse various formats of serialized data (JSON, YAML, etc.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands

type Commands struct {
	utils.Module
	// contains filtered or unexported fields
}

func New

func New(env utils.Runtime) *Commands

func (*Commands) Json

func (self *Commands) Json(fileOrReader interface{}) (interface{}, error)

Parses the given file as a JSON document and returns the resulting value.

func (*Commands) Yaml

func (self *Commands) Yaml(fileOrReader interface{}) (interface{}, error)

Parses the given file as a YAML document and returns the resulting value.

Jump to

Keyboard shortcuts

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