mirror of
https://gitee.com/energye/energy.git
synced 2024-12-04 20:58:21 +08:00
17 lines
357 B
Go
17 lines
357 B
Go
|
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)
|
|||
|
}
|