Updated examples to match
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package main
|
||||
|
||||
import "log"
|
||||
import "net/http"
|
||||
import "hnakra/service"
|
||||
|
||||
@@ -13,10 +12,7 @@ func main () {
|
||||
// do with how *something* is caching the file.
|
||||
http.ServeFile(res, req, "fractal.png")
|
||||
})
|
||||
|
||||
err := service.NewHTTP (
|
||||
"Image",
|
||||
"Displays an image of a fractal.",
|
||||
"@", "/fractal.png").Run()
|
||||
if err != nil { log.Println("XXX", err) }
|
||||
service.NewService (
|
||||
"Image", "Displays an image of a fractal.",
|
||||
service.NewHTTP("@", "/fractal.png", nil)).Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user