diff options
Diffstat (limited to 'hotline/file_types.go')
| -rw-r--r-- | hotline/file_types.go | 58 |
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", + }, +} |