go-http-server

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2015 License: MIT Imports: 4 Imported by: 0

README

go-http-server

MIT License

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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