Path

package
v0.0.0-...-7e13a3b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var W = library{
	Check: Check.New(),
}

Functions

This section is empty.

Types

type Path

type Path interface {
	CreatDirectory(directoryName string) bool  //创建目录
	CurrentDirectory() string                  //返回当前目录
	GetCurrentDirectory() (ok bool)            //获取当前目录
	GetCurrentRunningPath() (ok bool)          //获取当前运行路径
	CurrentRunningPath() string                //返回当前运行路径
	GetFilepath(fileName string) (ok bool)     //获取文件路径
	Filepath() string                          //返回文件路径
	GetFileDirectory(Filepath string) string   //返回文件目录
	GetFilename(Filepath string) string        //返回文件名
	GetExtensionPath(Filepath string) string   //返回文件扩展名
	GetAbsolutePath(Filepath string) (ok bool) //获取绝对路径
	AbsolutePath() string                      //返回绝对路径
	GetUNCPath(fileName string) (ok bool)      //获取UNC路径
	UNCPath() string                           //返回UNC路径
}

func New

func New() Path

Jump to

Keyboard shortcuts

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