writeout

package
v0.0.0-...-d3fa72d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFiles

func DeleteFiles(path string, predicate func(string) bool) error

DeleteFiles recursively walks the file system from the given starting part and deletes all files whose file names match a predicate.

func PrepareDir

func PrepareDir(path, suffix string) error

PrepareDir ensures that the given directory exists and removes all files with the specified suffix from it.

func Transformation

func Transformation(outputPath, suffix string) gotransform.FileTransformation

Transformation can be used at any stage to write each file out with an additional suffix. Files are written out with their relative path, so a file dir1/dir2/file.go will end up in outputPath/dir1/dir2/file.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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