envpath

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRawExecutableEnvironmentPathCollection

func GetRawExecutableEnvironmentPathCollection() []string

Types

type ExecutableEnvironmentPath

type ExecutableEnvironmentPath struct {
	Variable string
	Expanded string

	sync.Mutex
	// contains filtered or unexported fields
}

func (*ExecutableEnvironmentPath) GetCachedFileNamesCollection

func (eep *ExecutableEnvironmentPath) GetCachedFileNamesCollection() *fileinfo.FileNamesCollection

returns all pathsCollection paths on that env directory once, caches it and returns that in later function calls

func (*ExecutableEnvironmentPath) GetDirectories

func (eep *ExecutableEnvironmentPath) GetDirectories() []*string

returns all directories path on that env directory, no nested or resursive paths

func (*ExecutableEnvironmentPath) GetFileNamesCollection

func (eep *ExecutableEnvironmentPath) GetFileNamesCollection() *fileinfo.FileNamesCollection

func (*ExecutableEnvironmentPath) GetFilePathsContains

func (eep *ExecutableEnvironmentPath) GetFilePathsContains(
	separator,
	contains string,
) *[]string

returns all pathsCollection paths on which contains the given string. If no path is found, returns empty array.

func (*ExecutableEnvironmentPath) Length

func (eep *ExecutableEnvironmentPath) Length() int

type ExecutableEnvironmentPathCollection

type ExecutableEnvironmentPathCollection struct {
	// contains filtered or unexported fields
}

func GetExecutableEnvironmentPathCollection

func GetExecutableEnvironmentPathCollection() ExecutableEnvironmentPathCollection

func NewExecutableEnvironmentPathCollection

func NewExecutableEnvironmentPathCollection(capacity int) ExecutableEnvironmentPathCollection

func NewExecutableEnvironmentPathCollectionPtr

func NewExecutableEnvironmentPathCollectionPtr(capacity int) *ExecutableEnvironmentPathCollection

func (*ExecutableEnvironmentPathCollection) Add

func (*ExecutableEnvironmentPathCollection) AddPtr

func (receiver *ExecutableEnvironmentPathCollection) AddPtr(
	exeEnvPath *ExecutableEnvironmentPath,
)

func (*ExecutableEnvironmentPathCollection) IsExist

func (receiver *ExecutableEnvironmentPathCollection) IsExist(
	exeEnvPath ExecutableEnvironmentPath,
) bool

func (*ExecutableEnvironmentPathCollection) IsExistPtr

func (receiver *ExecutableEnvironmentPathCollection) IsExistPtr(
	exeEnvPath *ExecutableEnvironmentPath,
) bool

func (*ExecutableEnvironmentPathCollection) List

func (*ExecutableEnvironmentPathCollection) OnlyNamesCollection

func (receiver *ExecutableEnvironmentPathCollection) OnlyNamesCollection() *[]*ExecutableEnvironmentPath

Jump to

Keyboard shortcuts

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