소스 검색

Обновить '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)
 }