Go to file
2024-07-04 11:32:09 +08:00
_project to apigo.cc 2024-06-26 12:23:15 +08:00
node_modules to apigo.cc 2024-06-26 12:23:15 +08:00
tests support watch file change for auto refresh on debug mode 2024-07-04 11:32:09 +08:00
.gitignore first 2024-06-07 15:33:03 +08:00
go.mod support watch file change for auto refresh on debug mode 2024-07-04 11:32:09 +08:00
LICENSE first 2024-06-07 15:33:03 +08:00
package.json first 2024-06-07 15:33:03 +08:00
plugin.go support watch file change for auto refresh on debug mode 2024-07-04 11:32:09 +08:00
README.md to apigo.cc 2024-06-26 12:23:15 +08:00

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.cc/apigo/ag@latest
mkdir demo && cd demo
ag init client

edit main.js

import client from 'apigo.cc/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