extglob

package
v0.0.0-...-fb80b42 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package extglob basically extglob implements https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html

Index

Constants

View Source
const PATH_SEPARATOR = '/'

PATH_SEPARATOR path separator for different systems

Variables

This section is empty.

Functions

func Expand

func Expand(b []byte, options ...bool) ([]string, error)

Expand expand extglob pattern to actual files/directories

func IsPattern

func IsPattern(b []byte, extglob bool) bool

IsPattern whether a string is a valid pattern

Types

type ListFunc

type ListFunc func(p string, t, t1 bool) ([]string, error)

ListFunc list files, directories/sub-directories based on the globalstar and tailingsep boolean

type ValidFunc

type ValidFunc func(p string) bool

ValidFunc valid if a path exits

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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