file

package
v0.0.0-...-ff78940 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GalangFile

type GalangFile byte
var File GalangFile

func (*GalangFile) GetFileName

func (*GalangFile) GetFileName(filePath string) (name string)

GetFileName getFileName from a full filePath

func (*GalangFile) GetFileSize

func (*GalangFile) GetFileSize(path string) int64

GetFileSize get the length in bytes of file of the specified path.

func (*GalangFile) IsJSONByte

func (*GalangFile) IsJSONByte(b []byte) bool

IsJSONByte check one []byte is json file

func (*GalangFile) IsJSONFile

func (file *GalangFile) IsJSONFile(path string) bool

IsJSONFile check one file is json file

func (*GalangFile) IsXmlByte

func (*GalangFile) IsXmlByte(b []byte) bool

IsXmlByte check one []byte is xml file

func (*GalangFile) IsXmlFile

func (file *GalangFile) IsXmlFile(path string) bool

IsXmlFile check one file is xml file

Jump to

Keyboard shortcuts

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