golang 比较靠谱的 webview

不支持跨站

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

package main

import webview "github.com/webview/webview_go"

func main() {
	w := webview.New(false)
	defer w.Destroy()
	w.SetTitle("Basic Example")
	w.SetSize(480, 320, webview.HintNone)
	w.Navigate("http://www.ip33.com/browser.html")
	w.Run()
}

编译

1
go build   -o "$(basename "$(pwd)")_exe" *.go&& ls -lh *exe

跨平台编译貌似有问题

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计