Skip to content

Commit

Permalink
增加 html5test 示例,用于检查CEF支持的功能
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Nov 9, 2023
1 parent 25ee87a commit cdb3e02
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions example/html5test/html5test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

import (
"github.com/energye/energy/v2/cef"
)

func main() {
//全局初始化 每个应用都必须调用的
cef.GlobalInit(nil, nil)
//创建应用
app := cef.NewApplication()
//指定一个URL地址,或本地html文件目录
cef.BrowserWindow.Config.Url = "http://html5test.com/index.html"
//运行应用
cef.Run(app)
}

0 comments on commit cdb3e02

Please sign in to comment.