mul

command
v0.0.0-...-f0b40b8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 9 Imported by: 0

README

Mul microservice

Direct usage

  • On one terminal page
go run main.go

Press Ctrl + C to exit

  • On a separate terminal page
curl -XPOST -d '{"a":4, "b":5}' http://localhost:8080/mul

Where a and b have any int value

Usage via docker

  • On one terminal page
docker build -t mu-mul . 
# Any other tag will do inside docker build but must be the same used in docker run
docker run --rm -p 4000:8080 mcaci/mu-mul
  • On a separate terminal page
curl -XPOST -d '{"a":4, "b":5}' http://localhost:8080/mul

Where a and b have any int value

For now Ctrl + C doesn't work so the docker run command must be killed manually until I find a better solution

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