Explorar o código

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

gr782_lva %!s(int64=3) %!d(string=hai) anos
pai
achega
92ebee3f2c
Modificáronse 1 ficheiros con 0 adicións e 12 borrados
  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)
 }