util

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWriter

type FileWriter struct {
	Fs afero.Fs
}

FileWriter is a io wrapper to write files

func (*FileWriter) WriteCloser

func (fw *FileWriter) WriteCloser(path string) (io.Writer, error)

WriteCloser returns a WriteCloser to write to given path

func (*FileWriter) WriteFile

func (fw *FileWriter) WriteFile(filePath string, content []byte) error

WriteFile write given content to the file path

Jump to

Keyboard shortcuts

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