hello

command module
v0.0.0-...-c97ed5c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 7 Imported by: 0

README

Hello

A simple web server with some configuration knobs, for use in practicing configuration.

The server emits a page that contains its version, followed by a greeting, followed by the value specified in request path.

A request path of /quit exits the server.

Configuration Knobs
  • Integer port flag, default 8080.

  • A hard-coded version const set to zero, change it to make ambiguous differences between binaries.

  • Boolean flag enableRiskyFeature, default false. If enabled, the greeting is italicized.

  • Environment variable ALT_GREETING. If set, the value overrides the default greeting Hello.

Instructions to containerize the hello server are here.

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