basic

command
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

README

Basic Example

This demonstrates simple usage of the svc service builder. It shows how to create and run a server with an endpoint /add-one which reads in an integer from it's HTTP request body, adds one to it, and writes this response back to the client as XML.

To run it, simply cd into this directory, and run source .env to read the environment variables into the shell and then go run main.go to run the server.

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