files

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(target string, src string, backupPath string) error

func WithCreateThenReplace

func WithCreateThenReplace(fileName string, perm os.FileMode, action func(*os.File) error) error

func WithFileReader

func WithFileReader(from string, action func(io.Reader) error, filters ...func(r io.Reader) (io.Reader, error)) error

func WithOpenFile

func WithOpenFile(name string, flag int, perm os.FileMode, action func(*os.File) error) error

func WithReader

func WithReader(source io.Reader, action func(io.Reader) error, filters ...func(r io.Reader) (io.Reader, error)) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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