serve

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &base.Command{
	UsageLine: "serve [dir]",
	Short:     `build and run your game in a browser`,
	Long:      `serve a build of your game for playing in a web browser, defaults to port 8080`,
	Flag:      flag.NewFlagSet("serve", flag.ExitOnError),
	Run:       run,
}

Functions

func Run

func Run(args Arguments) error

Types

type Arguments

type Arguments struct {
	Port      string // :8080
	Directory string // .
	Tags      string // ie. "debug"
}

Jump to

Keyboard shortcuts

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