POST data using the Content-Type multipart/form-data

I'm trying to upload images from my computer to a website using go. Usually, I use a bash script that sends a file and a key to the server: curl -F "image"=@"IMAGEFILE" -F "key"="KEY" URL it works