Browse Source

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

gr792_mma 2 năm trước cách đây
mục cha
commit
acb9dc493f
1 tập tin đã thay đổi với 0 bổ sung23 xóa
  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")
-}