|
@@ -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)
|
|
|
}
|