Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServeOptions ¶
type ServeOptions struct {
WASM string `cli:"wasm,#set path to a wasm blob (setting this disables automatic rebuild)"`
Bindings string `cli:"bindings,#set path to a custom js bindings file (required when --wasm is set)"`
HTML string `cli:"html,#set path to a custom html page template to load bindings and wasm"`
ES string `cli:"es,def=5,comp=3,comp=5,comp=6,#set ES language target"`
ModuleName string `cli:"name,def=bindings,#set module name"`
Debug bool `cli:"debug,#debug build process"`
NoCache bool `cli:"no-cache,#build without cache"`
Trimpath bool `cli:"trimpath,#remove all file system paths from the resulting executable"`
Platform toolchain.Platform `cli:"p|platform,def=js/wasm,#\"os/arch\" pair"`
BuildDir string `cli:"build-dir,def=.pcz/build,#set directory to store intermediate build outputs"`
EntrySymbol string `cli:"entry,def=rt0,#set entry symbol name"`
Tags []string `cli:"t|tag,#go build tags"`
Defs []string `cli:"X|define,#link-time string value definition of the form importpath.name=value"`
ASMFlags []string `cli:"A|asmflag,#add flags to go tool asm"`
GCFlags []string `cli:"G|gcflag,#add flags to go tool compile (not including gccgo)"`
LDFlags []string `cli:"L|ldflag,#add flags to go tool link"`
ManualRun bool `cli:"manual,#disable running wasm automatically"`
CacheDir string `cli:"cache-dir,def=.pcz/cache/dev-js,#set directory to store built wasm, generated html & bindings triggered by file change"`
Port uint16 `cli:"port,#set web server listening port"`
Env []string `cli:"env,#add environment variables for wasm app in key=value format"`
TLSCert string `cli:"tls-cert,#set path to a tls cert (pem file)"`
TLSKey string `cli:"tls-key,#set path to the key to the tls-cert (pem file)"`
}
Click to show internal directories.
Click to hide internal directories.