mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
fix README.md
This commit is contained in:
parent
b204abdb50
commit
b79369769c
@ -32,7 +32,7 @@ or just call `http.Handle` and `http.HandleFunc`, then invoke `workers.Serve()`
|
|||||||
```go
|
```go
|
||||||
func main() {
|
func main() {
|
||||||
http.HandleFunc("/hello", func (w http.ResponseWriter, req *http.Request) { ... })
|
http.HandleFunc("/hello", func (w http.ResponseWriter, req *http.Request) { ... })
|
||||||
workers.Serve(nil) // if nil is given, http.DefaultMux is used.
|
workers.Serve(nil) // if nil is given, http.DefaultServeMux is used.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user