新增本地化
This commit is contained in:
18
libs/pack.go
Normal file
18
libs/pack.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package libs
|
||||
|
||||
import webview "github.com/webview/webview_go"
|
||||
|
||||
type Pack struct{}
|
||||
|
||||
func (Pack) Test() {
|
||||
debug := true
|
||||
w := webview.New(debug)
|
||||
defer w.Destroy()
|
||||
w.SetTitle("Go + WebView2 应用")
|
||||
w.SetSize(1024, 768, webview.HintNone)
|
||||
|
||||
// 加载远程网页
|
||||
w.Navigate("https://www.baidu.com")
|
||||
|
||||
w.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user