fileprocessing

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePath

func DeletePath(filePath string)

DeletePath deletes the file from the disk

func InterpolateStaticFiles

func InterpolateStaticFiles(inputPath string, variables map[string]string) string

InterpolateStaticFiles loads all the files in given resource path. E.g.: pkg/azuredevops/global It depends on resource embedding, that can be triggered by go generate. Replaces the variables based on the given dictionary, and returns the path to the generated directory where the results are stored

func WriteStringToTemporaryFile

func WriteStringToTemporaryFile(fileContents string, filePath string) (outputfolder string, outputfile string)

WriteStringToTemporaryFile writes the file contents into a file on a temporary disk location

Types

This section is empty.

Jump to

Keyboard shortcuts

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