kkamdooong / go-restful-api-example

RESTful API Example with golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RESTful API Example with golang

This is simple example restful api server only with gorilla/mux.
For simplifying code, this example uses a mock database that is map[string]interface{}

Install and Run

$ go get github.com/kkamdooong/go-restful-api-example

$ cd $GOPATH/src/github.com/kkamdooong/go-restful-api-example
$ go build
$ ./go-restful-api-example

API Endpoint

Data Structure

{
  "name": "golang",
  "tel": "012-345-6789",
  "email": "golang-nuts@googlegroups.com"
}

About

RESTful API Example with golang


Languages

Language:Go 100.0%