Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(path string, perm os.FileMode) error

CreateDirectory creates a directory by a path with a mode/permission specified by perm. If directory exists, the function does not do anything.

func DirExists

func DirExists(filename string) bool

DirExists returns true if a dir referenced by path exists & accessible.

func ErrNotIsSubfolder

func ErrNotIsSubfolder(base, specific string) error

func FileExists

func FileExists(filename string) bool

FileExists returns true if a file referenced by filename exists & accessible.

func FileOrDirExists

func FileOrDirExists(filename string) bool

FileOrDirExists returns true if a file or dir referenced by path exists & accessible.

func RemoveDirectory

func RemoveDirectory(path 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