Documentation ¶
Index ¶
- type FileType
- type Info
- func (info *Info) ExtensionMatches(value string) bool
- func (info *Info) Is3DImage() bool
- func (info *Info) IsArchive() bool
- func (info *Info) IsAudio() bool
- func (info *Info) IsDatabase() bool
- func (info *Info) IsDocument() bool
- func (info *Info) IsExecutable() bool
- func (info *Info) IsFont() bool
- func (info *Info) IsRasterImage() bool
- func (info *Info) IsRawImage() bool
- func (info *Info) IsSystem() bool
- func (info *Info) IsVectorImage() bool
- func (info *Info) IsVideo() bool
- func (info *Info) MimeMatches(value string) bool
- func (info *Info) TypeMatches(value FileType) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileType ¶
type FileType int
FileType represents supported file type
const ( RasterImage FileType RawImage VectorImage ThreeDimensionalImage Audio Video Document Archive Executable Font System Database )
type Info ¶
Info represents file info
func (*Info) ExtensionMatches ¶
ExtensionMatches checks if the file matches provided extension
func (*Info) IsDatabase ¶
IsDatabase checks if the file is a database
func (*Info) IsDocument ¶
IsDocument checks if the file is a document
func (*Info) IsExecutable ¶
IsExecutable checks if the file is an executable
func (*Info) IsRasterImage ¶
IsRasterImage checks if the file is a raster image
func (*Info) IsRawImage ¶
IsRawImage checks if the file is a raw image
func (*Info) IsVectorImage ¶
IsVectorImage checks if the file is a vector image
func (*Info) MimeMatches ¶
MimeMatches checks if the file matches provided MIME type
func (*Info) TypeMatches ¶
TypeMatches checks if the file matches provided file type
Click to show internal directories.
Click to hide internal directories.