file

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist

func Exist(path string) bool

Exist 判断文件是否存在

Types

type LocalFS

type LocalFS struct{}

func (LocalFS) Delete

func (l LocalFS) Delete(path string) error

func (LocalFS) Exist

func (l LocalFS) Exist(path string) bool

func (LocalFS) ListFiles

func (l LocalFS) ListFiles(path string) ([]string, error)

func (LocalFS) MkDir

func (l LocalFS) MkDir(path string) error

func (LocalFS) ReadFile

func (l LocalFS) ReadFile(path string) ([]byte, error)

func (LocalFS) WriteFile

func (l LocalFS) WriteFile(path string, data []byte) error

Jump to

Keyboard shortcuts

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