Documentation ¶
Index ¶
- type GalangFile
- func (*GalangFile) GetFileName(filePath string) (name string)
- func (*GalangFile) GetFileSize(path string) int64
- func (*GalangFile) IsJSONByte(b []byte) bool
- func (file *GalangFile) IsJSONFile(path string) bool
- func (*GalangFile) IsXmlByte(b []byte) bool
- func (file *GalangFile) IsXmlFile(path string) bool
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
Click to show internal directories.
Click to hide internal directories.