util

package
v0.0.0-...-f22496c Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchPath

func MatchPath(dir string, re *regexp.Regexp) (string, error)

MatchPath finds the first filename matching a regexp in dir

func MatchPaths

func MatchPaths(dir string, re *regexp.Regexp) ([]string, error)

MatchPaths finds all filenames matching a regexp in dir (non-recursive)

func MoveFile

func MoveFile(oldpath, newpath string) error

MoveFile moves file

func PathExists

func PathExists(path string) bool

PathExists is a simple existence check function

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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