fs

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseOnExec

func CloseOnExec(file *os.File)

func TempFileWithText

func TempFileWithText(text string) (*os.File, error)

TempFileWithText creates the temporary file with the given content, and returns the opened *os.File instance. The file is kept as open, the caller should close the file handle, and remove the file by name.

func TempFilenameWithText

func TempFilenameWithText(text string) (string, error)

TempFilenameWithText creates the file with the given content, and returns the filename (full path). The caller should remove the file after use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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