file_processing

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 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(inputPathFs embed.FS, inputPathRootFolderName string, variables map[string]string) string

InterpolateStaticFiles loads all the files in given embed FS path. It depends on resource embedding, set by go:embed directive 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