Simple Post image file to vgy.me
We are not affiliated to vgy.me
VGY.ME API doc is here
Doc online is on godoc
import "github.com/Frontware/vgy"
import "fmt"
func main () {
// Get your user key here: https://vgy.me/account/details#userkeys
vgy.UserKey = "PUT YOUR VGY USER KEY HERE"
// You must have the file "image.png" in current folder
info, err := vgy.UploadImageFile("image.png")
if err!=nil {
fmt.Fatal("Upload failed ",err)
}
fmt.Println("Upload to "+info.URL)
}