pathhelper

package module
v0.0.1-pre Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 7 Imported by: 0

README

Use Package logo

pathhelper

path helper utility tool

Git Clone

git clone YourModuleName.git

Prerequisites
  • Either add your ssh key to your gitlab account
  • Or, use your access token to clone it.

Installation

go get YourModuleName

Why YourModuleName?

Examples

Code Smaples

Acknowledgement

Any other packages used

Notes

Contributors

License

Evatix MIT License

Documentation

Index

Constants

View Source
const (
	OtherPathSeparator   = "/"
	WindowsPathSeparator = "\\"
	WindowsOS            = "windows"
	// filePrefix              = "file:"
	DoubleBackSlash     = "\\\\"
	BackSlash           = "\\"
	DoubleSlash         = "//"
	Slash               = "/"
	Prefix              = "file://"
	PrefixForWindowsURI = "file:\\\\"
	Underscore          = "_"
	Dash                = "-"
	DoubleDash          = "--"
	DoubleUnderscore    = "__"
)

Variables

This section is empty.

Functions

func GetAbsoluteFromExecutableDirectoryPath

func GetAbsoluteFromExecutableDirectoryPath(relativePath string) string

func GetAbsolutePath

func GetAbsolutePath(basePath, relativePath string) string

func GetCombinedOfNonEmptyPaths

func GetCombinedOfNonEmptyPaths(separator string, paths []string) string

func GetCombinedPath

func GetCombinedPath(separator string, isIgnoreEmptyPath bool, paths ...string) string

@isIgnoreEmptyPath if true then ignore empty string (nil, "", or any empty spaces " ")

func GetExecutableDirectory

func GetExecutableDirectory() string

func GetFileInfoWrapper

func GetFileInfoWrapper(path string) *pathhelpercore.FileInfoWrapper

func GetPathAsUri

func GetPathAsUri(path string) string

func GetPathFromUri

func GetPathFromUri(path string) string

func GetPathSeparator

func GetPathSeparator() string

func GetRelativePath

func GetRelativePath(fullPath, basePath string) string

func GetSlug

func GetSlug(path, separatorOfChoice string) string

func HasPathIssues

func HasPathIssues(stringToCheck string) bool

func IsDirectoryPath

func IsDirectoryPath(path string) bool

func IsFilePath

func IsFilePath(path string) bool

func IsPathExist

func IsPathExist(path string) bool

func IsPathNotExist

func IsPathNotExist(path string) bool

func IsSlug

func IsSlug(path string) bool

func IsWindows

func IsWindows() bool

func NormalizePath

func NormalizePath(givenPath string) string

func RemoveDoubleSeparator

func RemoveDoubleSeparator(path, separator string) string

TODO : Discuss this for inside the function

func RemovingDouble

func RemovingDouble(path string) string

func RemovingDoubleBackSlash

func RemovingDoubleBackSlash(path string) string

func RemovingDoubleSlash

func RemovingDoubleSlash(path string) string

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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