file

package
v0.0.0-...-f17293a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(filepath string, content string) error

func Create

func Create(name string, filepath string) (*os.File, error)

func DownloadFromUrl

func DownloadFromUrl(filepath string, url string) error

func ExtName

func ExtName(fileName string) string

func GetContent

func GetContent(filePath string) (string, error)

func IsNotExist

func IsNotExist(src string) bool

func IsPermission

func IsPermission(src string) bool

func MakeDir

func MakeDir(src string, perm os.FileMode) error

func MakeDirIfNotExist

func MakeDirIfNotExist(src string, perm os.FileMode) error

func MustOpen

func MustOpen(fileName, filePath string) (*os.File, error)

func Open

func Open(name string, flag int, perm os.FileMode) (*os.File, error)

func Size

func Size(f multipart.File) (int, error)

func WriteContent

func WriteContent(filepath string, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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