energy/cmd/internal/consts.go

29 lines
798 B
Go
Raw Normal View History

//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------
2023-01-29 14:24:11 +08:00
package internal
2022-11-18 12:56:27 +08:00
import "runtime"
2022-11-18 12:56:27 +08:00
const (
cefKey = "cef"
energyKey = "energy"
download_version_config_url = "https://energy.yanghy.cn/autoconfig/edv.json"
download_extract_url = "https://energy.yanghy.cn/autoconfig/extract.json"
frameworkCache = "EnergyFrameworkDownloadCache"
ENERGY_HOME_KEY = "ENERGY_HOME"
)
const (
isWindows = runtime.GOOS == "windows" //support
isLinux = runtime.GOOS == "linux" //support
isDarwin = runtime.GOOS == "darwin" //support
2022-11-18 12:56:27 +08:00
)