ext

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ext contains common filename extensions used by the file records.

Index

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

func IconName(name string) string

IconName returns the extensionless name of an Apache2 .gif image file to use as an icon for the named file.

func IsApp

func IsApp(name string) bool

IsApp returns true if the named file uses a Windows application filename.

func IsArchive

func IsArchive(name string) bool

IsArchive returns true if the named file uses a common compressed or archived filename.

func IsAudio

func IsAudio(name string) bool

IsAudio returns true if the named file uses a common digital audio filename.

func IsDocument

func IsDocument(name string) bool

IsDocument returns true if the named file uses a common document or text filename.

func IsExt

func IsExt(name string, extensions ...string) bool

IsExt returns true if the file extension of the named file is found in the collection of extensions.

func IsHTML

func IsHTML(name string) bool

IsHTML returns true if the named file uses a HTML markup filename.

func IsImage

func IsImage(name string) bool

IsImage returns true if the named file uses a common image or photo filename.

func IsTune

func IsTune(name string) bool

IsTune returns true if the named file uses a common tracker music filename.

func IsVideo

func IsVideo(name string) bool

IsVideo returns true if the named file uses a common video filename.

Types

This section is empty.

Jump to

Keyboard shortcuts

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