11. net/httpã§Webãµã¼ãããã¦ã package main ! import ( "fmt" "net/http" "log" ) ! func hello(w http.ResponseWriter, r *http.Request) { //fmt.Fprintfã§wã«å ¥ããã®ãã¯ã©ã¤ã¢ã³ãã«åºåããã fmt.Fprintf(w, "Hello World!") } ! func main() { // ã¢ã¯ã»ã¹ã®ã«ã¼ãã£ã³ã°ãè¨å®ãã http.HandleFunc("/", hello) // portãæå®ãã¦èµ·å err := http.ListenAndServe(":9090", nil) if err != nil { log.Fatal("ListenAndServe: ", err) } } 12. net/httpã§Webãµã¼ãããã¦ã packag
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}