REST API Server
Go 기본 Package만 사용해서 REST API Server 만들기
일단, 아래 블로그가 예제 코드를 복사해서 실습하기 좋게되어 있다.
https://woony-sik.tistory.com/12
Golang REST API 만들기
오늘은 Golang으로 간단한 REST API를 만드는 방법을 쓸까 한다. 바로 시작하자 우선은 Directory를 하나 만들고 시작 mkdir rest go module 등록 go mod init noah.io/ark/rest main.go 생성 touch main.go Direc..
woony-sik.tistory.com
gorilla package의 mux를 이용해서 REST API Server 만들기
이 블로그는 자동 Test하는 Code까지 포함되어 있다.
따라서 상용 Software PKG 개발할 때, 참고하면 좋다.
Golang으로 웹서버 만들기(4)
RESTful API - GET과 POST 다뤄보기
velog.io
REST API Client
go-resty 라는 'REST client library'를 이용하면, 쉽게 REST API Client App을 개발할 수 있다.
아래 GitHub에 Case by Case로 Example이 있기 때문에 장황한 설명보다는 아래 Web Docs에 있는 Example Code를 보고 이해하고 따라해보는 것이 좋을 듯하다.
https://github.com/go-resty/resty
GitHub - go-resty/resty: Simple HTTP and REST client library for Go
Simple HTTP and REST client library for Go. Contribute to go-resty/resty development by creating an account on GitHub.
github.com
위 go-resty를 소개한 블로그이다. 쉽게 설명했으니까 한번 읽어보면 좋을 것이다.
go-resty를 사용하면, JSON Type의 Request / Response 를 Marshal, Unmarshal할 필요가 없다.
https://wookiist.dev/104
[Go/Golang] Go의 HTTP & REST Client 라이브러리 - Resty
Go의 HTTP & REST Client 라이브러리 - Resty API Client 이전 포스팅에서 다뤘던 Echo는 Go의 Web Framework입니다. Echo로 구현한 프로그램은 API Server 등으로 동작할 수 있고, 큰 어려움 없이 Web Server로..
wookiist.dev
기타 Reference 하면 좋을 Blog
https://doitnow-man.tistory.com/259
[Go Lang] 4. 실전 - http server + swagger 만들기
목표 web framework를 사용하여 간단한 web api server를 만들어 보겠습니다. 배포는 추후 포스트에서 다루겠습니다. 개발 환경 - ubnutu 18.04 - go version go1.16.3 linux/amd64 (업그레이드 방법: golang.org..
doitnow-man.tistory.com
블로그 작성자: sejong.jeonjo@gmail.com
'Golang' 카테고리의 다른 글
go build 할 때 app version, build date, dev note를 추가하는 방법 (0) | 2022.07.05 |
---|---|
Go Package 및 Module 사용 예제 (0) | 2022.03.06 |
Go 언어 - Cobra Library를 이용하여 CLI Command 구현 (0) | 2021.11.24 |
golang cross compile (0) | 2021.11.03 |
Golang으로 App 개발시 폴더 초기화 작업(go mod init 및 tidy) (0) | 2021.06.25 |