save code

This commit is contained in:
白茶清欢 2023-02-07 22:32:38 +08:00
commit c9da8b3a88
3 changed files with 59 additions and 0 deletions

22
.gitignore vendored Normal file
View File

@ -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

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.zhangdeman.cn/zhangdeman/consts
go 1.19

34
mime_type.go Normal file
View File

@ -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"
)