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

오늘도 한걸음

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

오늘도 한걸음

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

golang REST API example (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
  • docker run redis-cli
  • postgres images
  • docker run postgres
  • docker run redis-server
  • postgresql dump
  • golang file compress
  • docker postgres
  • golang request body decode
  • pg dump
  • golang directory compress
  • docker redis container
  • golang api
  • golang rest api
  • golang web api
  • golang 디렉터리 압축
  • docker redis
  • pg db dump
  • docker run redis
  • golang 압축
  • db dump
  • golang http
  • golang http decode
  • postgres container
  • golang 파일 압축
  • golang 폴더 압축
  • golang http encode
  • postgresql db dump
  • golang REST API example
  • docker redis image
  • golang rest api server
more
«   2025/09   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바