README
¶
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
Documentation
¶
Index ¶
- func Bind(name string, fn interface{})
- func Unbind(name string)
- type Webview
- func (w *Webview) Close()
- func (w *Webview) Dispatch(f func())
- func (w *Webview) Eval(code string)
- func (w *Webview) LoadFile(file string)
- func (w *Webview) LoadURL(url string)
- func (w *Webview) Run()
- func (w *Webview) SetHtml(html string)
- func (w *Webview) SetSize(width int, height int, sizeMode *string)
- func (w *Webview) SetTitle(title string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.