Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigKeyBaiduTransAppId = "baiduTransAppId"
View Source
const ConfigKeyBaiduTransAppSecret = "baiduTransAppSecret"
View Source
const ConfigKeyFormatAnnotation = "formatAnnotation"
View Source
const ConfigKeyFormatCamelCase = "formatCamelCase"
View Source
const ConfigKeyFormatCarriageReturn = "formatCarriageReturn"
View Source
const ConfigKeyFormatSpace = "formatSpace"
View Source
const ConfigKeyGoogleTranslateProxy = "googleTranslateProxy"
View Source
const ConfigKeyGoogleTranslateUrl = "googleTranslateUrl"
View Source
const ConfigKeyMiniMode = "miniMode"
View Source
const ConfigKeyTranslateSelect = "translateSelect"
ConfigKeyTranslateSelect 选择哪个翻译
View Source
const ConfigKeyYouDaoTransAppId = "youdaoTransAppId"
View Source
const ConfigKeyYouDaoTransAppSecret = "youdaoTransAppSecret"
View Source
const ReleaseDate = "2024.03.01"
View Source
const Version = "V1.6-Release"
Variables ¶
This section is empty.
Functions ¶
func GetBaiduTransApiMsg ¶
返回百度翻译 api 的 appId 和 appSecret
func GetConfigFilePath ¶
func GetConfigFilePath() string
GetConfigFilePath 获取配置文件路径 linux 下在 ~/.config/EzeTranslate/config.yaml
func InitConfig ¶
func InitConfig()
func SaveConfig ¶
func SaveConfig()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.