./categories/back-end
Go RESTful JSON API
프로젝트 골격
mkdir go-rest-api && cd go-rest-api
touch main.go
go build
./go-rest-api
package main+func main: 실행 진입점
Gorilla Mux 라우팅
go get -u github.com/gorilla/mux
- 요청 라우터.
/핸들러 연결 후http://localhost:8080에서 실행
관련 링크: https://medium.com/the-andela-way/build-a-restful-json-api-with-golang-85a83420c9da
./comments