953 B
953 B
client
create a web client
client plugin for web client framework by https://github.com/webview/webview_go
create project and init client project
go install apigo.cloud/git/apigo/ag@latest
mkdir demo && cd demo
ag init client
edit main.js
import client from 'apigo.cloud/git/apigo/client'
let w = client.new('Hello', 800, 500)
w.loadFile('www/index.html')
w.run()
tidy & run
ag tidy
ag run
build
CGO_ENABLED=1 go build -o demo *.go
build on windows
CGO_ENABLED=1 go build -o demo.exe -ldflags '-H windowsgui' *.go