Documentation ¶
Overview ¶
文件相关操作.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HomeDirectory string
用户主目录.
View Source
var PathListSeparator string = string(os.PathListSeparator)
多路径分隔符. 如, linux下是':'.
View Source
var PathSeparator string = string(os.PathSeparator)
路径分隔符.
Functions ¶
func InstallDirectory ¶
func InstallDirectory()
在主目录下添加目录farmer/ , 包含子目录bin/ etc/ include/ lib/ share/ src/
Example ¶
InstallDirectory() return
Output:
func Path ¶
将各个元素拼接起来合成路径
Example ¶
println(Path(HomeDirectory, "go-farmer", "test.txt")) return
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.