file

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendContents

func AppendContents(path string, content []byte) error

AppendContents (文本)追加内容到文件末尾

func Copy

func Copy(src string, dst string) error

func Dir

func Dir(filename string) string

func Exists

func Exists(path string) bool

func GetBinContents

func GetBinContents(path string) []byte

GetBinContents (二进制)读取文件内容

func GetContents

func GetContents(path string) string

func Mkdir

func Mkdir(fpath string) error

func PutContents

func PutContents(path string, content []byte) error

PutContents (文本)写入文件内容

func Remove

func Remove(path string) error

func TempDir

func TempDir() string

func Truncate

func Truncate(path string, size int) error

Truncate changes the size of the named file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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