utils

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(file string) *os.File

func CreateFolder

func CreateFolder(dir string)

func CreateRegex

func CreateRegex(patterns []string) string

* * CreateRegex - method used to create regex at runtime by combining multiple patterns

func DeleteFile

func DeleteFile(path string)

func DeleteFolder

func DeleteFolder(dir string)

func IsDirectory

func IsDirectory(path string) (bool, error)

* * IsDirectory - method used to check a given path is a directory or not

func IsFileExists

func IsFileExists(path string) bool

* * IsFileExists - method used to check a given file path exists or not

func WriteFile

func WriteFile(file string, content []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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