elma_developer_test/main.go

23 lines
376 B
Go
Raw Normal View History

2022-09-16 13:48:36 +03:00
package main
import (
"fmt"
"gotest/solutions"
"io"
"net/http"
)
2022-09-30 23:35:21 +03:00
2022-11-29 22:04:09 +03:00
func main() {
http.HandleFunc("/task/", Handler)
http.HandleFunc("/tasks/", Handler)
fmt.Println("Engage!")
err := http.ListenAndServe(solutions.Port, nil)
if err != nil {
panic(err)
}
2022-09-16 13:48:36 +03:00
}
func Handler(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "я стану хокаге!!!")
}