Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 442 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 442 Bytes

Go REST API Example

Setup

Go Install

$ brew install golang
$ mkdir ~/go
$ export GOPATH="$HOME/go"
$ export GOBIN="$GOPATH/bin"
$ export PATH="$GOBIN:$PATH"

Project Setup

$ mkdir -p ~/go/src/github.com/spilth/
$ cd ~/go/src/github.com/spilth/
$ git clone git@github.com:spilth/golang-rest-api.git
$ cd golang-rest-api
$ go build
$ ./golang-rest-api

Then visit http://localhost:8000/api/v1/message