Documentation ¶
Index ¶
- Variables
- func ExistDir(name string) (bool, error)
- func ExistFile(name string) (bool, error)
- func FileSize(file *os.File) (int64, error)
- func FileSizeByPath(path string) (int64, error)
- func Mkdirs(path string, perms ...os.FileMode) error
- func ReadDir(path string) ([]string, []string, error)
- func ReadFile(path string) ([]byte, error)
- func ReadLine(buffer *bufio.Reader) ([]byte, error)
- func ReadLines(path string) ([][]byte, error)
- func ScanStd(handler LineHandler, hints ...string) error
- func SplitFile(path string) (string, string, error)
- func WriteFile(path string, content []byte, append bool) (int64, error)
- type LineHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPermOpen = os.FileMode(0666)
View Source
var LineBreak = []byte{'\n'}
Functions ¶
func FileSizeByPath ¶
FileSizeByPath 通过路径计算文件的大小(Byte单位)
Types ¶
type LineHandler ¶
Click to show internal directories.
Click to hide internal directories.