From f012f9eff36f6f2c2ad9a4f23644d8431705cb91 Mon Sep 17 00:00:00 2001 From: xurui <1627119275@qq.com> Date: Wed, 13 Jan 2021 11:15:52 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/main.go b/main.go index 4ec0e0f..9246b46 100644 --- a/main.go +++ b/main.go @@ -27,9 +27,6 @@ func getInfo() (size int64, data string) { defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) - //var data []map[string]string - //json.Unmarshal(body, &data) - data = string(body) fmt.Println(data) r := regexp.MustCompile(`\"size\":(.+?),`) @@ -52,15 +49,10 @@ func main() { var size, data = getInfo() if os.Getenv("Mode") != "dev" { CheckUpdate(size) - //HideConsole() } mux := http.NewServeMux() box := packr.NewBox("./html") - //mux.Handle("/", http.FileServer(http.Dir("html"))) mux.Handle("/", http.FileServer(box)) - //mux.HandleFunc("/ajax", func(writer http.ResponseWriter, request *http.Request) { - // writer.Write([]byte("bye bye ,this is v3 httpServer")) - //}) ln, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { @@ -118,7 +110,5 @@ func main() { "") - //ui.Load(fmt.Sprintf("http://%s", ln.Addr())) - <-ui.Done() }