aboutsummaryrefslogtreecommitdiff
path: root/hotline/file_types.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-05-25 15:03:54 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-05-25 15:10:28 -0700
commit2728d12b6169a978aa3dc2e35390923d2eecd295 (patch)
tree42078a99c30846ee4499a93e14db6a6717eb73e6 /hotline/file_types.go
parent583fd0d2d9064c173a13d6735edde771d5789de7 (diff)
Add more file extension -> type/creator code mappings
Diffstat (limited to 'hotline/file_types.go')
-rw-r--r--hotline/file_types.go58
1 files changed, 58 insertions, 0 deletions
diff --git a/hotline/file_types.go b/hotline/file_types.go
new file mode 100644
index 0000000..90ff57f
--- /dev/null
+++ b/hotline/file_types.go
@@ -0,0 +1,58 @@
+package hotline
+
+type fileType struct {
+ TypeCode string
+ CreatorCode string
+}
+
+var defaultFileType = fileType{
+ TypeCode: "TEXT",
+ CreatorCode: "TTXT",
+}
+
+var fileTypes = map[string]fileType{
+ "sit": {
+ TypeCode: "SIT!",
+ CreatorCode: "SIT!",
+ },
+ "pdf": {
+ TypeCode: "PDF ",
+ CreatorCode: "CARO",
+ },
+ "gif": {
+ TypeCode: "GIFf",
+ CreatorCode: "ogle",
+ },
+ "txt": {
+ TypeCode: "TEXT",
+ CreatorCode: "ttxt",
+ },
+ "zip": {
+ TypeCode: "ZIP ",
+ CreatorCode: "SITx",
+ },
+ "tgz": {
+ TypeCode: "Gzip ",
+ CreatorCode: "SITx",
+ },
+ "hqx": {
+ TypeCode: "TEXT ",
+ CreatorCode: "SITx",
+ },
+ "jpg": {
+ TypeCode: "JPEG ",
+ CreatorCode: "ogle",
+ },
+ "img": {
+ TypeCode: "rohd ",
+ CreatorCode: "ddsk",
+ },
+ "sea": {
+ TypeCode: "APPL ",
+ CreatorCode: "aust",
+ },
+ "mov": {
+ TypeCode: "MooV ",
+ CreatorCode: "TVOD",
+ },
+}