lab-go

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

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 12 Imported by: 0

README

lab-go

Example of a simple microservice in Go, demonstrating some patterns that have proven useful.

Setup

Clone into the directory structure expected by Go.

$GOPATH/src/github.com/MetaThis/lab-go

cd $GOPATH/src/github.com/MetaThis/lab-go
go get

Run tests

go test -v -cover

Run server locally

go build
./lab-go

With the server running, you can use Postman or cURL to make requests.

POST http://localhost:8080/lab/instrument/1/samples

Posting a body such as

[{"id":1},{"id":2},{"id":999}]

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