본문 바로가기 메뉴 바로가기

오늘도 한걸음

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

오늘도 한걸음

검색하기 폼
  • 분류 전체보기 (8)
    • Windows (1)
    • TypeScript (1)
    • DevOps (0)
    • Golang (2)
    • Algorithm (0)
    • Docker (2)
    • PostgreSQL (1)
    • gRPC (0)
    • CSS (1)
  • 방명록

golang rest api (1)
Golang REST API 만들기

오늘은 Golang으로 간단한 REST API를 만드는 방법을 쓸까 한다. 바로 시작하자 우선은 Directory를 하나 만들고 시작 mkdir rest go module 등록 go mod init noah.io/ark/rest main.go 생성 touch main.go Directory 구조 tree . ├── go.mod └── main.go main.go package main func main() { } 정말 간단하게 만들거라 위 구조에서 변경되는 건 없을 듯하다. http 패키지를 이용해 우선 서버를 띄워보자. package main import "net/http" func main() { http.ListenAndServe(":8080", nil) } 이렇게만 하면 포트 8080인 서버를 하..

Golang 2021. 8. 5. 23:24
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • golang REST API example
  • golang http
  • golang rest api
  • db dump
  • golang api
  • pg db dump
  • postgres images
  • docker run redis-cli
  • golang http encode
  • docker redis container
  • docker redis
  • golang 압축
  • postgresql dump
  • docker run redis
  • golang file compress
  • golang rest api server
  • golang 폴더 압축
  • golang directory compress
  • golang http decode
  • golang 파일 압축
  • golang web api
  • docker run redis-server
  • docker run postgres
  • postgres container
  • golang 디렉터리 압축
  • postgresql db dump
  • docker postgres
  • docker redis image
  • golang request body decode
  • pg dump
more
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바