fileop

package
v0.0.0-...-b68bb41 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(file string) error

Exists checks if a given filepath exists and is accessible

func FilesInPath

func FilesInPath(rootPath, filePattern string) ([]string, error)

FilesInPath given a path and a regex pattern string, the function will return the filepaths that match the pattern

func ReadImports

func ReadImports(filePath, importStart, importEnd, importLine, importInline string) (map[string]string, error)

ReadImports reads imports on a given filepath with the given regex params for start, end and line

Types

This section is empty.

Jump to

Keyboard shortcuts

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