Convert Curl POST into Go code

You can use os.Getenv to retrieve environment variables and os.Args to retrieve arguments given on the command line.

Also there is the net/http package which gives you a full HTTP(S) client which you can use to actually issue the request.