Categorygithub.com/andrepxx/go-service
repositorypackage
0.0.0-20240620130007-b09a2129e274
Repository: https://github.com/andrepxx/go-service.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# 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.