Updated examples to match
This commit is contained in:
@@ -6,12 +6,10 @@ import "hnakra/service"
|
||||
|
||||
func main () {
|
||||
http.HandleFunc("/kamikaze/", hellorld)
|
||||
|
||||
err := service.NewHTTP (
|
||||
service.NewService (
|
||||
"Kamikaze",
|
||||
"A service that abrupltly closes upon any request, for testing.",
|
||||
"@", "/kamikaze/").Run()
|
||||
if err != nil { log.Println("XXX", err) }
|
||||
service.NewHTTP("@", "/kamikaze/", nil)).Run()
|
||||
}
|
||||
|
||||
func hellorld (res http.ResponseWriter, req *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user