看板 Gossiping 關於我們 聯絡資訊
package main import ( "fmt" "net/http" ) func hello(w http.ResponseWriter, req *http.Request) { fmt.Fprintf(w, "hello\n") } func headers(w http.ResponseWriter, req *http.Request) { for name, headers := range req.Header { for _, h := range headers { fmt.Fprintf(w, "%v: %v\n", name, h) } } } func main() { http.HandleFunc("/hello", hello) http.HandleFunc("/headers", headers) http.ListenAndServe(":8090", nil) } 以上這些英文字的腳本 如果在vs Code裡面 命令行輸入 go run 就會 運作起來 然後開啟網路連結 電腦工程師就是打打字在螢幕上面 寫寫東西 然後就有什麼執行了 寫符咒教學, 有很多功用例如請天兵天將 寫在符草紙上 也是 寫寫東西 然後就有什麼執行了 程序工程師就是一堆道士 吧? 掛 https://youtu.be/bAclOmxx_r8?si=A0M6FmledWLO8OIu
-- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.141.228.70 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Gossiping/M.1736264119.A.884.html
SidMax: 照你邏輯 老闆動動嘴 下面人就動起來了1.200.148.77 01/07 23:37
zyxx: 誰會用8090啊=.=1.161.40.6 01/07 23:37
複製貼上的 ※ 編輯: iLeyaSin365 (223.141.228.70 臺灣), 01/07/2025 23:40:04
Forcast: 寫病歷 114.25.161.93 01/07 23:40
kingofsdtw: 動嘴下面就會自己跑起來了 106.64.169.129 01/07 23:42
kingofsdtw: 是不是很magic? 106.64.169.129 01/07 23:43
wkuochen: 好酷哦 123.195.97.215 01/07 23:43
k291154222: Golang? 111.83.94.162 01/07 23:47
rapnose: https://is.gd/PNMrO4 122.118.141.99 01/07 23:53
rapnose: https://is.gd/PGU8nB 122.118.141.99 01/07 23:54
KyuubiKulama: 應該是golang 沒錯 1.169.181.163 01/08 00:01
jaid: 又在go219.104.138.232 01/08 00:18
as349349: 還在go 42.79.191.144 01/08 09:01