Documentation
¶
Index ¶
- func Default(a, b string) string
- func FileCopy(dest, source string) error
- func FileGetContents(filename string) (string, error)
- func FileLineNum(path string) (num int, err error)
- func FilePutContents(filename, data string, mode os.FileMode) error
- func FileScan(path string, f func(b []byte, line int) bool, maxLineLen ...int) error
- func IsWritable(path string) (isWritable bool, err error)
- func Pathinfo(path string, options int) map[string]string
- func ScanDir(path string) ([]string, error)
- func Set(data ...string) map[string]struct{}
- func Unlink(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileGetContents ¶ added in v0.2.10
file_get_contents()
func FileLineNum ¶ added in v0.2.10
FileLineNum 获取文件行数
func FilePutContents ¶ added in v0.2.10
file_put_contents()
func IsWritable ¶ added in v0.2.10
IsWritable 目录是否可写
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
writer
|
|
|
rotate/file-rotatelogs
package rotatelogs is a port of File-RotateLogs from Perl (https://metacpan.org/release/File-RotateLogs), and it allows you to automatically rotate output files when you write to them according to the filename pattern that you can specify.
|
package rotatelogs is a port of File-RotateLogs from Perl (https://metacpan.org/release/File-RotateLogs), and it allows you to automatically rotate output files when you write to them according to the filename pattern that you can specify. |
Click to show internal directories.
Click to hide internal directories.