Documentation ¶
Overview ¶
Package ext contains common filename extensions used by the file records.
Index ¶
- Constants
- func IconName(name string) string
- func IsApp(name string) bool
- func IsArchive(name string) bool
- func IsAudio(name string) bool
- func IsDocument(name string) bool
- func IsExt(name string, extensions ...string) bool
- func IsHTML(name string) bool
- func IsImage(name string) bool
- func IsTune(name string) bool
- func IsVideo(name string) bool
Constants ¶
View Source
const ( App = "comp2" Doc = "doc" Htm = "generic" Pic = "image2" Sfx = "sound2" Vid = "movie" Zip = "compressed" )
Icon names for the Apache2 .gif image files used as icons for the named file.
Variables ¶
This section is empty.
Functions ¶
func IconName ¶
IconName returns the extensionless name of an Apache2 .gif image file to use as an icon for the named file.
func IsArchive ¶
IsArchive returns true if the named file uses a common compressed or archived filename.
func IsDocument ¶
IsDocument returns true if the named file uses a common document or text filename.
func IsExt ¶
IsExt returns true if the file extension of the named file is found in the collection of extensions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.