Parcourir la source

Удалить 'test.go'

gr792_mma il y a 2 ans
Parent
commit
acb9dc493f
1 fichiers modifiés avec 0 ajouts et 23 suppressions
  1. 0 23
      test.go

+ 0 - 23
test.go

@@ -1,23 +0,0 @@
-package main
-
-import (
-	"fmt"
-	"log"
-	"net/http"
-)
-
-func main() {
-	http.HandleFunc("/ok", sayhello)
-	http.HandleFunc("/info", sayhello1)
-	err := http.ListenAndServe(":8080", nil)
-	if err != nil {
-		log.Fatal("ListenAndServe: ", err)
-	}
-}
-func sayhello(w http.ResponseWriter, r *http.Request) {
-	fmt.Fprintf(w, "ok")
-	w.WriteHeader(200)
-}
-func sayhello1(w http.ResponseWriter, r *http.Request) {
-	fmt.Fprintf(w, "Морозов М.А. 792")
-}