Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "bytes"
- "fmt"
- "net/http"
- )
- func main() {
- _, err := http.Post("localhost:5000", "application/json", bytes.NewBuffer([]byte("{test:5}")))
- if err != nil {
- fmt.Println("something went wrong")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement