README ¶ Form Decoder Example $ go run form/main.go $ curl -XPOST \ -d "username=foo&password=bar" \ http://localhost:8080/login username: foo, password: bar $ curl -XPOST \ -H "Content-Type: application/json" \ -d '{"username":"foo", "password": "bar"}' \ http://localhost:8080/login username: foo, password: bar $ curl -XPOST \ -H "Content-Type: application/xml" \ -d '<xml><username>foo</username><password>bar</password></xml>' \ http://localhost:8080/login username: foo, password: bar $ curl -XPOST \ -F "username=foo" -F "password=bar" \ http://localhost:8080/login username: foo, password: bar Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.