2023-05-25 16:08:56 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "log"
|
|
|
|
import "net/http"
|
|
|
|
import "hnakra/service"
|
|
|
|
|
|
|
|
func main () {
|
|
|
|
http.HandleFunc("/kamikaze/", hellorld)
|
2023-05-29 19:22:46 -06:00
|
|
|
service.NewService (
|
2023-05-27 01:57:27 -06:00
|
|
|
"Kamikaze",
|
|
|
|
"A service that abrupltly closes upon any request, for testing.",
|
2023-05-29 19:22:46 -06:00
|
|
|
service.NewHTTP("@", "/kamikaze/", nil)).Run()
|
2023-05-25 16:08:56 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func hellorld (res http.ResponseWriter, req *http.Request) {
|
|
|
|
log.Fatal("Goodbye!")
|
|
|
|
}
|