energy/example/browser-cookie/cookie.go
2022-11-18 22:50:44 +08:00

18 lines
379 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package main
import (
"github.com/energye/energy/cef"
)
func main() {
//全局初始化 每个应用都必须调用的
cef.GlobalCEFInit(nil, nil)
//创建应用
cefApp := cef.NewApplication(nil)
//主窗口的配置
//指定一个URL地址或本地html文件目录
cef.BrowserWindow.Config.DefaultUrl = "https://energy.yanghy.cn"
//运行应用
cef.Run(cefApp)
}