example

command
v0.0.0-...-c045886 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2015 License: MIT Imports: 5 Imported by: 0

README

Endpoint Example

To run the example, start the server

go run main.go

Get

$ curl http://localhost:8080/foo/something
the answer is 42

Post

$ echo '{"text": "Hello **world**!"}' | curl -H "Content-Type:application/json" -d @- http://localhost:8080/bar/baz
You posted {"text": "Hello **world**!"}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL