Documentation ¶
Index ¶
- func CreateTempFile(basePath, fn string, sourceBytes []byte) (string, error)
- func PrependFile(fileName string, header string) error
- func ReadFile(sourceFile string) ([]byte, error)
- func SaveFmtFile(fileName string, fset *token.FileSet, node interface{}) error
- func UpdateFile(fileName string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempFile ¶
CreateTempFile creates a copy of the source file and returns the new destination file name.
func PrependFile ¶
func UpdateFile ¶
UpdateFile will replace an existing file with new data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.