Documentation
¶
Index ¶
- func ExecLinuxShell(s string) (string, error)
- func FileMD5(file *os.File) string
- func FileSha1(file *os.File) string
- func GetAllFilesInDirectory(dirPath string) ([]string, error)
- func GetFileMd5(path string) (string, error)
- func GetFileSha1(path string) (string, error)
- func GetFileSize(filename string) (int64, error)
- func MD5(data []byte) string
- func Merge(filePaths []string, outputPath string) error
- func PathExists(path string) (bool, error)
- func Sha1(data []byte) string
- type Sha1Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecLinuxShell ¶
ExecLinuxShell 执行 linux shell command
func GetAllFilesInDirectory ¶
func GetFileMd5 ¶
func GetFileSha1 ¶
func GetFileSize ¶
func PathExists ¶
Types ¶
type Sha1Stream ¶
type Sha1Stream struct {
// contains filtered or unexported fields
}
func (*Sha1Stream) Sum ¶
func (obj *Sha1Stream) Sum() string
func (*Sha1Stream) Update ¶
func (obj *Sha1Stream) Update(data []byte)
Click to show internal directories.
Click to hide internal directories.