Updated examples to match
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
import "log"
|
||||
import "net/http"
|
||||
import "hnakra/service"
|
||||
|
||||
@@ -11,13 +10,9 @@ func main () {
|
||||
http.HandleFunc("/gifs/", gifs)
|
||||
http.Handle("/gifs/static/", http.StripPrefix("/gifs/static", static))
|
||||
|
||||
err := service.NewHTTP (
|
||||
service.NewService (
|
||||
"Gifs", "Serves a lot of big gifs on one page.",
|
||||
"@", "/gifs/").Run()
|
||||
|
||||
if err != nil {
|
||||
log.Println("XXX", err)
|
||||
}
|
||||
service.NewHTTP("@", "/gifs/", nil)).Run()
|
||||
}
|
||||
|
||||
func gifs (res http.ResponseWriter, req *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user