Documentation ¶
Index ¶
- func AddPathExtensionOnRequired(location string, dotExtension string) (locationFinal string)
- func Get(currentPath string) (baseDir, fileName string)
- func GetAllSplits(currentPath string) (baseDirNames *[]string)
- func GetAllSplitsWithSep(currentPath, separator string) (baseDirNames *[]string)
- func GetBaseDir(currentPath string) (baseDir string)
- func GetBaseDirName(currentPath string) (baseDirName string)
- func GetBaseDirNameOrEmpty(currentPath string) (baseDirName string)
- func GetBaseDirNames(currentPath string) (baseDirNames *[]string)
- func GetBaseDirPlusName(currentPath string) (baseDir, baseDirName string)
- func GetBothExtension(currentPath string) (dotExt, ext string)
- func GetFileNameDotExt(currentPath string) (fileName string, dotExt string)
- func GetFileNameWithoutExt(currentPath string) (filename string)
- func GetFilenamePlusBothExtensions(currentPath string) (fileName, dotExt, ext string)
- func GetFilenamePlusExt(currentPath string) (fileName string, ext string)
- func GetName(currentPath string) (fileName string)
- func GetWithoutSlash(currentPath string) (baseDir, fileName string)
- func IndexOfDotFromLastFileName(currentPath string) (fileName string, index int)
- func LastDot(s string) int
- func LastSlash(s string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPathExtensionOnRequired ¶ added in v0.2.4
func GetAllSplits ¶ added in v0.0.6
GetAllSplits Ref : https://play.golang.org/p/oT6eWNZAeEi
func GetAllSplitsWithSep ¶ added in v0.0.6
func GetBaseDir ¶
GetBaseDir
No slash at the end reference example : https://play.golang.org/p/BJRR0Wk7GhJ
func GetBaseDirName ¶ added in v0.0.6
func GetBaseDirNameOrEmpty ¶ added in v0.2.4
GetBaseDirNameOrEmpty reference example : https://play.golang.org/p/BJRR0Wk7GhJ
func GetBaseDirNames ¶ added in v0.0.6
func GetBaseDirPlusName ¶ added in v0.0.6
GetBaseDirPlusName
No slash at the end reference example : https://play.golang.org/p/BJRR0Wk7GhJ
func GetBothExtension ¶ added in v0.0.6
func GetFileNameDotExt ¶
func GetFileNameWithoutExt ¶
GetFileNameWithoutExt
invalid ext should return empty string. reference example : https://play.golang.org/p/oT6eWNZAeEi
func GetFilenamePlusExt ¶
func GetName ¶ added in v0.5.2
GetName
Can be dir name, file name with ext ¶
reference example : https://play.golang.org/p/oT6eWNZAeEi
func GetWithoutSlash ¶
func IndexOfDotFromLastFileName ¶
returns -1 if last file name doesn't have any extension reference example : https://play.golang.org/p/oT6eWNZAeEi
Types ¶
This section is empty.
Source Files ¶
- AddPathExtensionOnRequired.go
- Get.go
- GetAllSplits.go
- GetAllSplitsWithSep.go
- GetBaseDir.go
- GetBaseDirName.go
- GetBaseDirNameOrEmpty.go
- GetBaseDirNames.go
- GetBaseDirPlusName.go
- GetBothExtension.go
- GetFileNameDotExt.go
- GetFileNameWithExt.go
- GetFileNameWithoutExt.go
- GetFilenamePlusBothExtensions.go
- GetFilenamePlusExt.go
- GetWithoutSlash.go
- IndexOfLastFileNameDot.go
- LastDot.go
- LastSlash.go
Click to show internal directories.
Click to hide internal directories.