update gojs
This commit is contained in:
parent
eb3b523eaf
commit
1934dd6477
17
aaa/main.go
17
aaa/main.go
@ -1,17 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
webview "github.com/webview/webview_go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
runtime.LockOSThread() // 锁定当前线程为主线程
|
||||
w := webview.New(false)
|
||||
defer w.Destroy()
|
||||
w.SetTitle("WebView Demo")
|
||||
w.SetSize(800, 600, webview.HintNone)
|
||||
w.Navigate("https://example.com") // 或本地文件:"file:///path/to/index.html"
|
||||
w.Run()
|
||||
}
|
||||
18
go.mod
18
go.mod
@ -1,13 +1,13 @@
|
||||
module apigo.cc/gojs/client
|
||||
|
||||
go 1.24
|
||||
go 1.24.0
|
||||
|
||||
require (
|
||||
apigo.cc/gojs v0.0.25
|
||||
github.com/chromedp/cdproto v0.0.0-20250724212937-08a3db8b4327
|
||||
github.com/chromedp/chromedp v0.14.0
|
||||
apigo.cc/gojs v0.0.30
|
||||
github.com/chromedp/cdproto v0.0.0-20250803210736-d308e07a266d
|
||||
github.com/chromedp/chromedp v0.14.2
|
||||
github.com/ssgo/tool v0.4.29
|
||||
github.com/ssgo/u v1.7.21
|
||||
github.com/ssgo/u v1.7.23
|
||||
github.com/webview/webview_go v0.0.0-20240831120633-6173450d4dd6
|
||||
)
|
||||
|
||||
@ -20,11 +20,11 @@ require (
|
||||
github.com/gobwas/httphead v0.1.0 // indirect
|
||||
github.com/gobwas/pool v0.2.1 // indirect
|
||||
github.com/gobwas/ws v1.4.0 // indirect
|
||||
github.com/google/pprof v0.0.0-20250630185457-6e76a2b096b5 // indirect
|
||||
github.com/ssgo/config v1.7.9 // indirect
|
||||
github.com/google/pprof v0.0.0-20250903194437-c28834ac2320 // indirect
|
||||
github.com/ssgo/config v1.7.10 // indirect
|
||||
github.com/ssgo/log v1.7.9 // indirect
|
||||
github.com/ssgo/standard v1.7.7 // indirect
|
||||
golang.org/x/sys v0.34.0 // indirect
|
||||
golang.org/x/text v0.27.0 // indirect
|
||||
golang.org/x/sys v0.38.0 // indirect
|
||||
golang.org/x/text v0.31.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user