Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServeFlags ¶ added in v0.2.1
type ServeFlags 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"` 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)"` ES string `cli:"es,def=5,comp=5,comp=6,#set ES language when transpiling typescript"` ModuleName string `cli:"module-name,def=bindings,#set module name for generated bindings"` Debug bool `cli:"debug,#debug the wasm build process"` BuildDir string `cli:"build-dir,def=.pcz/build,#set directory to store intermediate build outputs"` NoCache bool `cli:"no-cache,#build without cache"` Trimpath bool `cli:"trimpath,#remove all file system paths from the resulting executable"` Defs []string `cli:"X|define,#link-time string value definition of the form importpath.name=value"` EntrySymbol string `cli:"entry,def=rt0,#set entry symbol name"` Platform toolchain.Platform `cli:"p|platform,def=js/wasm,#\"os/arch\" pair"` Tags []string `cli:"t|tag,#add build tags"` LDFlags []string `cli:"L|ldflag,#add flags to go tool link"` GCFlags []string `cli:"G|gcflag,#add flags to go tool compile (not including gccgo)"` ASMFlags []string `cli:"A|asmflag,#add flags to go tool asm"` }
Click to show internal directories.
Click to hide internal directories.