elma_developer_test/main.go

24 lines
401 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() {
fmt.Println("Engage!")
testHandler := func(w http.ResponseWriter, _ *http.Request) {
solutions.ProcessTask(solutions.FindUnique)
io.WriteString(w, "я стану хокаге!!!")
}
http.HandleFunc("/status", testHandler)
err := http.ListenAndServe(solutions.Port, nil)
if err != nil {
panic(err)
}
2022-09-16 13:48:36 +03:00
}