go-http-server
The easist way to start a web server in your Windows/Mac/Linux laptop.
Downloand it, Copy it and Execute it. That's all!
Usage
You just execute go-http-server start
in your console.
$ go-http-server start
You can specify the port number the server should listen to like this.
$ go-http-server start --port 8080
Cross compile
Currently the following OSs and Architectures are supported.
- Linux/386
- Linux/amd64
- Darwin/386
- Darwin/amd64
- Windows/386
- Windows/amd64
To make a binary for each environment, Gox is required.
Setting Gox up is easy by the following commands
# Install gox
$ go get github.com/mitchellh/gox
# Setup tools
$ gox -build-toolchain
Then you can cross-compile it by this command.
# Compile them
$ ./build.sh
You'll find the binaries in pkg
directory.
Author
Kohei Kawasaki