go-greetings

module
v0.0.0-...-11f3fd8 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT

README

go-greetings

A small go app that offers a rest api to store greetings in and retrieve them from a db.

Docker image

When using the docker image specify the postgres connection string in the environment variable GOGREETING_DATASOURCE.

Endpoints

It has some very simple url based endpoints that you can use directly from the browser.

remember

Save a greeting for john:

localhost:8080/remember/john/greet_john
greet

Return the greeting for john

localhost:8080/greet/john

Directories

Path Synopsis
pkg
db

Jump to

Keyboard shortcuts

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