Browse Source

Merge pull request #133 from tchssk/fix-example-greet

Fix example greet
Carl Jackson 11 years ago
parent
commit
d198bcf1dd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      example/main.go

+ 1
- 1
example/main.go View File

@ -90,7 +90,7 @@ func Root(w http.ResponseWriter, r *http.Request) {
// you to the created greet.
//
// To post a new greet, try this at a shell:
// $ now=$(date +'%Y-%m-%mT%H:%M:%SZ')
// $ now=$(date +'%Y-%m-%dT%H:%M:%SZ')
// $ curl -i -d "user=carl&message=Hello+World&time=$now" localhost:8000/greets
func NewGreet(w http.ResponseWriter, r *http.Request) {
var greet Greet


Loading…
Cancel
Save