util

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

Tests if a resource exists on the filesystem

func ExistsDir

func ExistsDir(path string) (bool, error)

Tests if directory exists

func Filter added in v0.7.0

func Filter(vs []string, f func(string) bool) []string

Types

type FileResult added in v0.7.0

type FileResult int
const (
	File      FileResult = 0
	Directory FileResult = 1
	Glob      FileResult = 2
)

func GetFiles added in v0.7.0

func GetFiles(pattern string) (FileResult, []string, string, error)

Jump to

Keyboard shortcuts

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