1234567891011121314151617181920212223242526 |
- package main
- import (
- "log"
- "net/http"
- )
- func main() {
- gugugaga()
- }
- func gugugaga() {
- http.HandleFunc("/ok/", status200)
- http.HandleFunc("/info/", information)
- err := http.ListenAndServe(":7070", nil)
- if err != nil {
- log.Fatal("ListenAndServer:", err)
- return
- }
- }
- func status200(w http.ResponseWriter, r *http.Request) {
- w.Write([]byte("статус 200"))
- }
- func information(w http.ResponseWriter, r *http.Request) {
- w.Write([]byte("группа 792(4)\n Варламов Алексей"))
- }
|