Documentation
¶
Overview ¶
Package gofront serves a frontend directory over HTTP and exposes bound Go methods to JavaScript (see App.Bind). Build an APK with the gofront CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Addr string // default 127.0.0.1:8080; override with -addr
FrontendDir string // default "frontend"; override with -frontend
// contains filtered or unexported fields
}
App is a local HTTP server plus a set of Go objects callable from JS.
func (*App) Bind ¶
Bind registers obj under name. Exported methods become window.gofront.<name>.<Method>(...).
func (*App) GenerateBindings ¶
GenerateBindings writes gofront.js and gofront.d.ts into dir.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gofront
command
Command gofront builds a Go + web project into an Android .apk.
|
Command gofront builds a Go + web project into an Android .apk. |
|
internal
|
|
|
apk
Package apk packs and signs an Android APK in pure Go (no Android SDK).
|
Package apk packs and signs an Android APK in pure Go (no Android SDK). |
|
assets
Package assets embeds prebuilt Android bootstrap files used by every APK.
|
Package assets embeds prebuilt Android bootstrap files used by every APK. |
Click to show internal directories.
Click to hide internal directories.