Hi Victor,

Have you had a look at the net/http package? http://golang.org/pkg/net/http

On Fri, 29 Jul 2016 01:01 Victor L <vlyamt...@gmail.com> wrote:

> I am using curl for REST call from json file, like the following:
> curl  -X POST -H "Content-Type: application/json"
> http://127.0.0.1:8080/v2/apps?force=true -d...@deploy.json
> How can I translate this to "golang"  POST method? More specifically, how
> can i create request object from json file?
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Adrian Lanzafame
Software Developer

m: 0435419266
e: adrianlanzafam...@gmail.com
gh: github.com/Lanzafame

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to