os

package
v0.0.0-...-f1279a5 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(path string) (*os.File, error)

文件不存在则进行创建,文件存在则向文件中追加内容

func Create

func Create(path string) (*os.File, error)

创建文件(判断文件夹存不存在,不存在则进行文件夹创建在进行文件创建)

func Exists

func Exists(path string) bool

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

func ExistsDir

func ExistsDir(path string) bool

判断文件夹是否存在

func ExistsFile

func ExistsFile(path string) bool

判断文件是否存在

func RDRW

func RDRW(path string) (*os.File, error)

读写文件(如果文件存在则打开文件,文件不存在则创建)

Types

This section is empty.

Jump to

Keyboard shortcuts

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