fileT

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatFile

func CreatFile(filename string, text string)

创建文件

func FileIsExists

func FileIsExists(path string) bool

判断文件是否存在

func GetFileAbsDir added in v0.0.5

func GetFileAbsDir(path string) string

func GetFileDir added in v0.0.5

func GetFileDir(path string) string

func GetFileName added in v0.0.5

func GetFileName(path string) string

获取文件名

func GetFileNameWithSuffix added in v0.0.5

func GetFileNameWithSuffix(path string) string

func GetFileSuffix added in v0.0.6

func GetFileSuffix(path string) string

func GetFilenameFingerprint

func GetFilenameFingerprint(binaryData []byte, hasher func() hash.Hash) string

生成文件指纹

func ReadFile

func ReadFile(filename string) string

读取文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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