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