main.go723 chars31 lines
This is a simple function that takes url as string and data as a map of string key-value pairs to be sent as form data in the request. It returns the http Response object and an error, if any. It uses the "mime/multipart" package in Go to create form data from the received map data, and the http.Client to make the Http request.
gistlibby LogSnag