commit c9da8b3a883f325c7751fe4367ccf2626ee0b328 Author: 白茶清欢 Date: Tue Feb 7 22:32:38 2023 +0800 save code diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df8e306 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# Created by .ignore support plugin (hsz.mobi) +### Go template +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib +*.xlsx + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ +.idea +.vscode +mail_test.go + diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..dd35fa5 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.zhangdeman.cn/zhangdeman/consts + +go 1.19 diff --git a/mime_type.go b/mime_type.go new file mode 100644 index 0000000..e811005 --- /dev/null +++ b/mime_type.go @@ -0,0 +1,34 @@ +// Package consts ... +// +// Description : consts ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2023-02-07 21:43 +package consts + +const ( + // MimeTypeImageJpeg jpeg图片 + MimeTypeImageJpeg = "image/jpeg" + // MimeTypeImagePng png 图片 + MimeTypeImagePng = "image/png" + // MimeTypeJson json数据格式 + MimeTypeJson = "application/json" + // MimeTypeAcc acc音频 + MimeTypeAcc = "audio/acc" + // MimeTypeAbw .abw后缀的文件 + // 文件扩展名名以.abw/.abw.crashed/.abw.gz结尾的文件是由AbiSource这款开源文字处理软件创建的文件格式。 + // AbiWord是一个免费的文字处理程序,类似于微软的Word, 是适用于各种各样的文字处理任务的专业办公软件。 + // 支持中文等全球多种语言,并支持Windows、Linux、Mac OS等多种操作系统平台。 + MimeTypeAbw = "application/x-abiword" + // MimeType123 .123后缀文件 + // Open Source 软件包开发了 123文件扩展名,也称为 Lotus 1-2-3 Spreadsheet 文件Gnumeric 。 + // @see https://www.fileviewpro.com/zh-cn/file-extension-123/ + MimeType123 = "application/vnd.lotus-1-2-3" + // MimeTypeImage3ds .3ds后缀文件 + // Adobe Systems Incorporated软件系列创建了3D Studio Scene (3DS) Adobe Photoshop CC 文件。 + // @see https://www.fileviewpro.com/zh-cn/file-extension-3ds + MimeTypeImage3ds = "image/x-3ds" + // MimeTypeVideo3gpp .3g2/.3ga/.3gp/.3gpp文件 + MimeTypeVideo3gpp = "video/3gpp’" +)