Advertisement
nordlaender

go client

May 17th, 2013
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.23 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "bytes"
  5.     "fmt"
  6.     "net/http"
  7. )
  8.  
  9. func main() {
  10.     _, err := http.Post("localhost:5000", "application/json", bytes.NewBuffer([]byte("{test:5}")))
  11.     if err != nil {
  12.         fmt.Println("something went wrong")
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement