repositorypackage
0.0.0-20180217093713-6f1b61a82292
Repository: https://github.com/frontware/vgy.git
Documentation: pkg.go.dev
# README
vgy
Simple Post image file to vgy.me
Important
We are not affiliated to vgy.me
vgy API doc
VGY.ME API doc is here
Doc
Doc online is on godoc
Usage
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)
}