iohelper

package
v0.0.0-...-96111de Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader struct{}

FileReader implements Reader interface. It allows to read a file.

func (FileReader) Read

func (fr FileReader) Read(path string) ([]byte, error)

type FileWriter

type FileWriter struct{}

FileWriter is an implementation of Writer to file to file.

func (FileWriter) Write

func (fw FileWriter) Write(path string, data []byte) error

type MockReader

type MockReader struct {
	mock.Mock
}

MockReader is an autogenerated mock type for the Reader type

func (*MockReader) Read

func (_m *MockReader) Read(path string) ([]byte, error)

Read provides a mock function with given fields: path

type MockWriter

type MockWriter struct {
	mock.Mock
}

MockWriter is an autogenerated mock type for the Writer type

func (*MockWriter) Write

func (_m *MockWriter) Write(path string, data []byte) error

Write provides a mock function with given fields: path, data

type Reader

type Reader interface {
	Read(path string) ([]byte, error)
}

Reader is the interface to wrap Read method.

type Writer

type Writer interface {
	Write(path string, data []byte) error
}

Writer is an interface to wrap Write method.

Jump to

Keyboard shortcuts

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