Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogFile = "%s/gtools.log" DBFile = "%s/gtools.db" )
默认文件路径
View Source
var ( MdFilter = runtime.FileFilter{ DisplayName: "Markdown (*.md)", Pattern: "*.md", } HtmlFilter = runtime.FileFilter{ DisplayName: "HTML (*.html)", Pattern: "*.html", } )
markdown 文件类型
View Source
var ( BdOcrTokenHost = "https://aip.baidubce.com/oauth/2.0/token" // token BdOcrAccurateBasic = "https://aip.baidubce.com/rest/2.0/ocr/v1/accurate_basic" // 通用文字识别-高精度版 BdOcrGeneralBasic = "https://aip.baidubce.com/rest/2.0/ocr/v1/general_basic" // 通用文字识别-标准版 BdTransUrl = "https://fanyi-api.baidu.com/api/trans/vip/translate" )
百度相关地址
View Source
var ( AddTodoItemErr = "添加待办事项[%s]失败--异常信息[%s]" GetTodoListErr = "获取待办事项列表失败--异常信息[%s]" DelTodoItemErr = "删除待办事项[%s]失败--异常信息[%s]" )
View Source
var ( AddAlertItemErr = "添加待办事项[%s]失败--异常信息[%s]" GetAlertListErr = "获取待办事项列表失败--异常信息[%s]" DelAlertItemErr = "删除待办事项[%s]失败--异常信息[%s]" )
View Source
var ( AddCmdItemErr = "添加快捷指令[%s]失败--异常信息[%s]" UpdateCmdItemErr = "更新指令状态[%s]失败--异常信息[%s]" CmdItemHandlerErr = "[%s]指令执行失败--异常信息[%s]" DelCmdItemErr = "删除快捷指令[%s]失败--异常信息[%s]" )
View Source
var ( GetConfigListErr = "获取软件配置列表失败--异常信息[%s]" AddConfigItemErr = "新增[%s]软件配置项失败--异常信息[%s]" GetConfigItemErr = "查询[%s]软件配置项失败--异常信息[%s]" UpdateConfigItemErr = "更新[%s]软件配置项失败--异常信息[%s]" NoImgBedConfigErr = "系统无图床配置" )
View Source
var ( InitSysClipboardErr = "初始化剪贴板功能失败--异常信息[%s]" GetSystemClipboardImgErr = "获取系统剪贴板图片失败" SaveImgToLocalErr = "图片本地存储失败" )
View Source
var ( CreateAliOSSClientErr = "创建阿里云OSS客户端失败--异常信息[%s]" GetAliOSSBucketErr = "获取AliOSS存储空间失败--异常信息[%s]" )
View Source
var ( BdOcrUrlParseErr = "百度OCR url解析错误--异常信息[%s]" BdOcrTokenGetErr = "百度OCR Token获取失败--异常信息[%s]" BdOcrRequestErr = "百度OCR Request请求失败--异常信息[%s]" BdOcrResponseErr = "百度OCR Response读取失败--异常信息[%s]" BdTransRequestErr = "百度翻译请求失败--异常信息[%s]" )
View Source
var AliOSS = [...]string{"point", "endPoint", "accessKeyId", "accessKeySecret", "bucketName", "projectDir"}
按照类型存储所有配置项
View Source
var BdOcr = [...]string{"grantType", "clientId", "clientSecret", "token"}
View Source
var BdTrans = [...]string{"appid", "secret", "salt", "from", "to"}
View Source
var ConfigTypes = [...]string{"alioss", "limgpath", "imgbed", "bdocr", "bdtrans", "trans"}
存储所有配置项的类型[阿里云OSS,本地图片路径,图床类型,百度OCR,百度翻译,翻译类型]
View Source
var ImgBed = [...]string{"configType"}
View Source
var LocalImgPath = [...]string{"path"}
View Source
var Trans = [...]string{"transType"}
View Source
var (
WebkitPath = "%s/Library/Caches/com.wails.gvm/WebKit"
)
Mac webkit路径
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.