서버 기초
golang언어로 웹서버를 만들어보았다. [Golang] package main import ( "net/http" ) func main(){ http.Handle("/",http.FileServer(http.Dir("Public"))) http.ListenAndServe(":8080",nil) } main pkg "net/http" 요놈을 import를 해야 웹서버를 구현할수가 있다. http.Handle("/",http.FileServer(http.Dir("Public"))) http.ListenAndServe(":8080",nil) http 라이브러리를 이용해서 고랭과 html 파일을 연동하고 포트는 :8080로 설정을했다. [html] DOCTYPE html> 고랭웹서버 입니다. 환영합니다. ht..