ioutilx

package
v0.0.0-...-8366d43 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OS       = InjectableOS{}
	IOReader = InjectableIOReader{}
)

Functions

func OpenLogFile

func OpenLogFile(filePath string) (*os.File, error)

Types

type FileOrString

type FileOrString string

func (FileOrString) Bytes

func (f FileOrString) Bytes(statter Statter, reader FileReader) ([]byte, error)

type FileReader

type FileReader interface {
	ReadFile(string) ([]byte, error)
}

type InjectableIOReader

type InjectableIOReader struct{}

func (InjectableIOReader) ReadFile

func (InjectableIOReader) ReadFile(filename string) ([]byte, error)

type InjectableOS

type InjectableOS struct{}

func (InjectableOS) Stat

func (InjectableOS) Stat(name string) (os.FileInfo, error)

type Statter

type Statter interface {
	Stat(string) (os.FileInfo, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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