gopher-translator-service

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

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

gopher-translator-service 📃

~

Build Status License

Overview

This is an HTTP gopher translation service.

Gophers are friendly creatures but it’s not that easy to communicate with them. They have their own language and they don’t understand English. You can use this service to translate to their language.

Setup and run locally

go mod vendor
go run main.go -port=8081
# go run main.go

Run tests

Prerequisites
go generate ./...
ginkgo -v

Sample calls locally

curl -X POST http://127.0.0.1:8080/word -d '{"english-word": "penguin"}'
curl -X POST http://127.0.0.1:8080/sentence -d '{"english-sentence": "You either die a hero, or you live long enough to see yourself become the villain."}'
curl http://127.0.0.1:8080/history

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
app
env
handlers/handlers_mocks
Package handlers_mocks is a generated GoMock package.
Package handlers_mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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