init commit

This commit is contained in:
2024-03-19 01:05:51 +08:00
commit 199bbf2628
393 changed files with 34883 additions and 0 deletions

20
archive/go/test/http.go Normal file
View File

@ -0,0 +1,20 @@
package main
import (
"net/http"
"time"
)
// 测试http是否会处理完请求后才结束
// 结果,不会
func main() {
http.HandleFunc("/test", func(writer http.ResponseWriter, request *http.Request) {
time.Sleep(time.Second * 5)
writer.Write([]byte("success"))
})
http.ListenAndServe(":8080", nil)
}