æ¦è¦ ãã®è¨äºã¯Qiita - Go6 Advent Calendar 2019ã®20æ¥ç®ã®è¨äºã§ãã Golangã§HTTPãµã¼ãã¼ãç«ã¦ãã³ã¼ãã®è©³ç´°ã追ã£ã¦ã³ã¼ããªã¼ãã£ã³ã°ãã¾ãã åèå®è£ ã³ã¼ããªã¼ãã£ã³ã°ãã¦ããå®è£ ã¯ãã¡ãã package main import ( "net/http" ) func main() { mux := http.NewServeMux() handler := new(HelloHandler) mux.Handle("/", handler) s := http.Server{ Addr: ":3000", Handler: mux, } s.ListenAndServe() } type HelloHandler struct{} func (h *HelloHandler) ServeHTTP(w http.ResponseWrite
{{#tags}}- {{label}}
{{/tags}}