filereader

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSON FileReaderType = ".json"
	YAML                = ".yaml"
	XML                 = ".xml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReaderType

type FileReaderType string

type IReader

type IReader interface {
	Read(filePath string) map[string]interface{}
}

func NewFileReader

func NewFileReader(readerType string) IReader

type JsonReader

type JsonReader struct {
	// contains filtered or unexported fields
}

func (JsonReader) Read

func (r JsonReader) Read(filePath string) map[string]interface{}

Jump to

Keyboard shortcuts

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