wgoserve

package module
v0.0.0-...-7e905a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

README

wgoserve

wgoserve makes it easy to deploy web assembly modules written in golang

Usage

In your web assembly program, do:


import (
    "github.com/moowiz/wgoserve/wasm"
)

func main() {
	go wasm.EnsureFresh("/version")
    ...
}

Then, run the wgoserve binary locally:

go get -u github.com/moowiz/wgoserve
wgoserve path/to/project

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeepFresh

func KeepFresh(mainTarget string, flags []string) func(http.ResponseWriter, *http.Request)

KeepFresh keeps the code fresh

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL