-
Notifications
You must be signed in to change notification settings - Fork 5
/
File Formats.go
50 lines (46 loc) · 1.87 KB
/
File Formats.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
File Username: File Formats.go
Copyright: 2021 Peernet s.r.o.
Author: Peter Kleissner
Definition of all recognized file formats. This file is likely being updated more frequently than regular code.
*/
package core
// General content types of data.
const (
TypeBinary = iota // Binary/unspecified
TypeText // Plain text
TypePicture // Picture of any format
TypeVideo // Video
TypeAudio // Audio
TypeDocument // Any document file, including office documents, PDFs, power point, spreadsheets
TypeExecutable // Any executable file, OS independent
TypeContainer // Container files like ZIP, RAR, TAR, ISO
TypeCompressed // Compressed files like GZ, BZ
TypeFolder // Virtual folder
TypeEbook // Ebook
)
// File formats. New ones may be added to the list as required.
const (
FormatBinary = iota // Binary/unspecified
FormatPDF // PDF document
FormatWord // Word document
FormatExcel // Excel
FormatPowerpoint // Powerpoint
FormatPicture // Pictures (including GIF, excluding icons)
FormatAudio // Audio files
FormatVideo // Video files
FormatContainer // Compressed files including ZIP, RAR, TAR and others
FormatHTML // HTML file
FormatText // Text file
FormatEbook // Ebook file
FormatCompressed // Compressed file
FormatDatabase // Database file
FormatEmail // Single email
FormatCSV // CSV file
FormatFolder // Virtual folder
FormatExecutable // Executable file
FormatInstaller // Installer
FormatAPK // APK
FormatISO // ISO
FormatPeernetSearch // Peernet Search
)