Documentation ¶
Index ¶
- Variables
- func CheckStartup() bool
- func DeCompress(dst, src, filename string) error
- func Exec(exe string, args ...string) (string, error)
- func FileExists(file string) bool
- func GbkToUtf8(s []byte) []byte
- func GetSysProcAttr() *syscall.SysProcAttr
- func GetSystemProxy()
- func Msg(msg string)
- func OpenFolder(file string)
- func ReadConfig()
- func Request(method, url string, query url.Values, headers map[string]string) (int64, []byte)
- func RequestToFile(method, url, filename string, query url.Values, headers map[string]string) bool
- func SetClashStartup(enable bool) bool
- func SetSystemProxy(enable bool) bool
- func UnGzip(dst, src, filename string) error
- func UnZip(dst, src string) (err error)
- type ClashConf
- type Downloader
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CurUser *user.User UserName string // system username HttpClient = &http.Client{} DownZipSuffix string // "zip" or "gz" ClashUpdateCh = make(chan int) ClashAppDir string // Clash Premium Dir ClashConfig = ClashConf{} // Clash Premium config struct ClashPort int // 系统代理使用的端口 ClashScheme string // 系统代理使用的协议 CurrentWorkDir string // ClashWebExe string // path_to_clashweb )
Functions ¶
func DeCompress ¶
func FileExists ¶
func GetSysProcAttr ¶
func GetSysProcAttr() *syscall.SysProcAttr
func Msg ¶
func Msg(msg string)
githbub.com beeep https://wiki.archlinux.org/title/Desktop_notifications
func OpenFolder ¶
func OpenFolder(file string)
func ReadConfig ¶ added in v1.0.5
func ReadConfig()
func RequestToFile ¶
func SetClashStartup ¶
设置 Clash 开机启动 https://blog.lovefan.club/2020/09/18/22.html
func SetSystemProxy ¶
linux and mac 设置系统代理 https://mrjun.cn/Dy4ALDFDO/
Types ¶
Click to show internal directories.
Click to hide internal directories.