filehandlerutils

package
Version: v0.0.0-...-764d18e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHandler

type FileHandler interface {
	PrintToJSONFile() (string, int, error)
	PrintToFile() (string, int, error)
	ReadFromFile() (string, int, error)
}

FileHandler : Interface of file handler

type FileHandler1

type FileHandler1 struct {
	FilePath string
}

FileHandler1 : Struct implementing interface FileHandler

func (*FileHandler1) PrintToFile

func (f *FileHandler1) PrintToFile(content string) (string, int, error)

PrintToFile : Implementing interface of FileHandler, to print to general file. Output: [file name, total byte read, error]

func (*FileHandler1) PrintToJSONFile

func (f *FileHandler1) PrintToJSONFile(content interface{}) (string, int, error)

PrintToJSONFile : Implementing interface of FileHandler, to print to JSON file. Output: [file name, total byte read, error]

Jump to

Keyboard shortcuts

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