mp_file

package
v0.0.0-...-5b025be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileMd5

func FileMd5(path string) (string, error)

FileMd5 文件的MD5校验 OK

func FilePutContents

func FilePutContents(Path string, s string, types bool)

FilePutContents 写入文件,type=true覆盖,type=false追加

func FileSha256

func FileSha256(path string) (string, error)

FileSha256 文件的SHA256校验 OK

func IsExist

func IsExist(path string) bool

IsExist 判断文件夹或文件是否存在

func WriteBytes

func WriteBytes(filePath string, b []byte) (int, error)

WriteBytes 向文件写入bytes

func WriteString

func WriteString(filePath string, s string) (int, error)

WriteString 向文件写入string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL