util

package
Version: v0.0.0-...-1d4877a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeDirectory

func HomeDirectory() string

func IsDirectory

func IsDirectory(path string) bool

func IsFile

func IsFile(path string) bool

func NamedCaptureGroups

func NamedCaptureGroups(pattern *regexp.Regexp, str string) (map[string]string, bool)

NamedCaptureGroups does a regexp match wih the supplied pattern on the str parameter and extracts the namend capture groups as map and returns it

when the pattern does not match (nil, false) is returned

func PathExists

func PathExists(path string) bool

returns whether the given file or directory exists or not

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL