filesys

package
v2.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) (bool, error)

DirExists checks if folder at path exist.

func EnsureDirPathExist

func EnsureDirPathExist(dirPath string) error

EnsureDirPathExist ensures dir path exists. If path does not exist, creates new path.

func FormatAndSaveGoFile

func FormatAndSaveGoFile(dirPath, fileName string, text []byte) error

FormatAndSaveGoFile saves go file at folder dir, with name fileName and contents text.

func RemoveDir

func RemoveDir(dir string) error

RemoveDir deletes everything at folder dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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