onetwoseven

package module
v0.0.0-...-31f7e51 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

README

onetwoseven

The simplest programmer's web server. Use it as an executable or a Go library.

$ 127
12:43 I ━┃ ━━┃┏━┃
12:43 I  ┃ ┏━┛  ┃
12:43 I ━━┛━━┛  ┛
12:43 I starting . on 127.0.0.1:8190

There are as few options as possible.

$ 127 --help
usage: 127 [<flags>] [<path>]

Programmer's test http server

Flags:
      --help                   Show context-sensitive help (also try --help-long and --help-man).
  -h, --host="127.0.0.1:8190"  Host and port to start server on
  -p, --path="."               path to serve.
  -d, --verbose                Print debugging output.

Documentation

Overview

Package onetwoseven is a simple web server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(config *Config)

Types

type Config

type Config struct {
	Path     string
	HostPort string
}

func (*Config) String

func (c *Config) String() string

Directories

Path Synopsis
Command 127 provides a programmers debugging web server.
Command 127 provides a programmers debugging web server.

Jump to

Keyboard shortcuts

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