parser

package
v3.1.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONReader

type JSONReader struct {
}

JSONReader struct created to read json config files

func (JSONReader) CanParse

func (jp JSONReader) CanParse(filename string) bool

CanParse return true if is a json file

func (JSONReader) Parse

func (jp JSONReader) Parse(buf []byte) (mock.Definition, error)

Read Unmarshal a json file to Definition struct

type YAMLReader

type YAMLReader struct {
}

YAMLReader struct created to read yaml config files

func (YAMLReader) CanParse

func (jp YAMLReader) CanParse(filename string) bool

CanParse return true if is a yaml file

func (YAMLReader) Parse

func (jp YAMLReader) Parse(buf []byte) (mock.Definition, error)

Read Unmarshal a yaml file to Definition struct

Jump to

Keyboard shortcuts

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