package
Version:
v0.0.0-...-43cec88
Opens a new window with list of versions in this module.
Published: Feb 28, 2018
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Contain(obj interface{}, target interface{}) (bool, error)
Contain 判断obj是否在target中,target支持的类型arrary,slice,map
Exist 检查文件或目录是否存在
如果由 filename 指定的文件或目录存在则返回 true,否则返回 false
Filename returns the filename except ext
IsDir 判断给定文件名是否是一个目录
如果文件名存在并且为目录则返回 true。如果 filename 是一个相对路径,则按照当前工作目录检查其相对路径。
IsFile 判断给定文件名是否为一个正常的文件
如果文件存在且为正常的文件则返回 true
ScanDir 列出指定路径中的文件和目录
如果目录不存在,则返回空 slice
Source Files
¶
Click to show internal directories.
Click to hide internal directories.