fileutil

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilePerm600 os.FileMode = 0o600 // For secret files.
	FilePerm644 os.FileMode = 0o644 // For normal files.
	FilePerm755 os.FileMode = 0o755 // For directory or execute files.
)

Variables

This section is empty.

Functions

func EnsureFileExists

func EnsureFileExists(path string)

func EnsureFolderExists

func EnsureFolderExists(folder string)

func Exists

func Exists(path string) bool

func TemplateGenerateFileFromReader

func TemplateGenerateFileFromReader(reader io.Reader, dstPath string, data interface{}) error

func TemplateGenerateString

func TemplateGenerateString(str string, data interface{}) (string, error)

func WriteFile

func WriteFile(path string, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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