file_processing

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempDirectory added in v0.12.1

func CreateTempDirectory(inputPathFs embed.FS, inputPathRootFolderName string) (string, error)

CreateTempDirectory loads all the files in given embed FS path. It depends on resource embedding, set by go:embed directive Returns the path to the generated directory where the results are stored

func DeletePath

func DeletePath(filePath string) error

DeletePath deletes the file from the disk

func LoadEncryptedFile added in v0.12.0

func LoadEncryptedFile[T interface{}](filename string, cryptographer security.Cryptographer) (*T, error)

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