elma_developer_test/main.go

24 lines
498 B
Go
Raw Normal View History

2022-09-16 13:48:36 +03:00
package main
import (
"fmt"
"gotest/solutions"
"net/http"
)
2022-09-30 23:35:21 +03:00
2022-11-29 22:04:09 +03:00
func main() {
fmt.Println("Live long and prosper")
testHandler := func(w http.ResponseWriter, _ *http.Request) {
b, _ := solutions.ProcessTask(solutions.Rotation) //воткнул что бы не ругался на не использование
//io.WriteString(w, string(b))
fmt.Println(b)
}
http.HandleFunc("/status", testHandler)
err := http.ListenAndServe(solutions.Port, nil)
if err != nil {
panic(err)
}
2022-09-16 13:48:36 +03:00
}