go-service

command module
v0.0.0-...-0ebd1a7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

go-service

This is a sample application, which demonstrates how to build a (secure) web service in Go.

The service can be queried over the URL /cgi-bin/service.

The action carried out by the service is selected by the cgi parameter. Each possible value results in a different handler function being called.

The only handler function implemented in this example performs a no-operation, then creates a JSON response indicating that the requested action was successful.

Static content from the webroot/ subdirectory is served directly and unaltered.

MIME types are derived from the file extension, as configured in the server configuration located inside the config/ directory.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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