parser

package
v2.3.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 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) (definition.Mock, error)

Read Unmarshal a json file to Mock 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) (definition.Mock, error)

Read Unmarshal a yaml file to Mock struct

Jump to

Keyboard shortcuts

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