file

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Byte  = 1
	KByte = Byte * 1024
	MByte = KByte * 1024
	GByte = MByte * 1024
	TByte = GByte * 1024
	PByte = TByte * 1024
	EByte = PByte * 1024
)

Variables

This section is empty.

Functions

func Exist

func Exist(path string) bool

func FileSize

func FileSize(s int64) string

func GetCurrentDirectory

func GetCurrentDirectory() (string, error)

func IsImageFile

func IsImageFile(data []byte) bool

func IsPDFFile

func IsPDFFile(data []byte) bool

func IsTextFile

func IsTextFile(data []byte) bool

func IsVideoFile

func IsVideoFile(data []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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