Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix example

  • Loading branch information...
commit c2230177d0050ee91293a82434aac1629dbe0b1a 1 parent 4583876
@bmizerany authored
View
1  .gitignore
@@ -1,2 +1,3 @@
*.prof
*.out
+example/example
View
BIN  example/a.out
Binary file not shown
View
8 example/hello.go
@@ -1,7 +1,7 @@
package main
import (
- "github.com/bmizerany/pat.go"
+ "github.com/bmizerany/pat"
"io"
"net/http"
)
@@ -18,9 +18,3 @@ func hello(w http.ResponseWriter, r *http.Request) {
name := r.URL.Query().Get(":name")
io.WriteString(w, "Hello, "+name)
}
-
-func splat(w http.ResponseWriter, r *http.Request) {
- // Path variable names are in the URL.Query() and start with ':'.
- s := r.URL.Query().Get(":splat")
- io.WriteString(w, "Splat: "+s)
-}
Please sign in to comment.
Something went wrong with that request. Please try again.