From 0013bbd3fb6777761c55b551c7d967cec9e23ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=BA=A2=E5=B2=A9?= Date: Thu, 1 Jun 2023 07:39:32 +0800 Subject: [PATCH] update readme --- README.md | 2 +- README.zh_CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ced200a..3f3ad09 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ func main() { //Global initialization must be called by every application cef.GlobalInit(nil, nil) //Create application - cefApp := cef.NewApplication(nil) + cefApp := cef.NewApplication() //Set URL cef.BrowserWindow.Config.Url = "https://energy.yanghy.cn" //Run App diff --git a/README.zh_CN.md b/README.zh_CN.md index cb73b34..c729b97 100644 --- a/README.zh_CN.md +++ b/README.zh_CN.md @@ -103,7 +103,7 @@ func main() { //全局初始化 每个应用都必须调用的 cef.GlobalInit(nil, nil) //创建应用 - cefApp := cef.NewApplication(nil) + cefApp := cef.NewApplication() //指定一个URL地址,或本地html文件目录 cef.BrowserWindow.Config.Url = "https://energy.yanghy.cn" //运行应用 -- GitLab