Skip to content

northbright/go-post-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-post-example

Build Status Go Report Card

Golang example to do HTTP POST request from client and handle the request in server side.

Client

  • Values.Encode() encodes the values into “URL encoded” form ("bar=baz&foo=quux") sorted by key.
  • POST JSON to server and read response.

Server

  • Request.ParseForm() will parse form data and update Request.PostForm.
  • Unmarshal JSON from POST data to a struct.

About

Golang example to do HTTP POST request from client and handle the request in server side.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages