Jelajahi Sumber

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

gr782_lva 3 tahun lalu
induk
melakukan
92ebee3f2c
1 mengubah file dengan 0 tambahan dan 12 penghapusan
  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)
 }