浏览代码

Обновить 'Server_Golang/main.go'

gr782_lva 3 年之前
父节点
当前提交
92ebee3f2c
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      Server_Golang/main.go

+ 0 - 12
Server_Golang/main.go

@@ -30,16 +30,4 @@ fmt.Fprint(w,"http status ok ")
 }
 func info (w http.ResponseWriter,r *http.Request) {
 fmt.Fprint(w,"LI Vladislave♂")
-}
-
-func status (w http.ResponseWriter,r *http.Request) {
-var remoteIp = r.RemoteAddr
-var splitIp = strings.Split(remoteIp, ".")
-var fmtIP = fmt.Sprint(splitIp[0], ".x./.", strings.Split(splitIp[3], ":")[0])
-
-var fmtDate = time.Now().Format("2006-01-02 3:4:5 ")
-
-fmt.Fprintf(w,"made the Vlad\n")
-fmt.Fprintf(w, fmtDate + "\n")
-fmt.Fprintf(w, fmtIP)
 }